From 4c553161b23d98c7fb135febe87672fbdc776c67 Mon Sep 17 00:00:00 2001 From: cradle8810 Date: Thu, 25 Apr 2024 19:40:24 +0900 Subject: [PATCH] =?UTF-8?q?Google=20Chrome=E7=94=A8=E3=81=AE=E3=83=AA?= =?UTF-8?q?=E3=83=9D=E3=82=B8=E3=83=88=E3=83=AA=E8=BF=BD=E5=8A=A0=E3=81=A8?= =?UTF-8?q?apt=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console.yml | 4 ++++ inventories/host_vars/console.yml | 1 + tasks/console/apt.yml | 1 + tasks/console/chrome_repo.yml | 5 +++++ 4 files changed, 11 insertions(+) create mode 100644 tasks/console/chrome_repo.yml diff --git a/console.yml b/console.yml index b6ba266..51d5980 100644 --- a/console.yml +++ b/console.yml @@ -59,6 +59,10 @@ ansible.builtin.import_tasks: file: tasks/console/firewall.yml + - name: Apt add Google Chrome Repo + ansible.builtin.import_tasks: + file: tasks/console/chrome_repo.yml + - name: Apt install ansible.builtin.import_tasks: file: tasks/console/apt.yml diff --git a/inventories/host_vars/console.yml b/inventories/host_vars/console.yml index f285802..0299fde 100644 --- a/inventories/host_vars/console.yml +++ b/inventories/host_vars/console.yml @@ -7,6 +7,7 @@ apt: - gimp - git - golang + - google-chrome-stable - gpgv2 - gprename - heif-thumbnailer diff --git a/tasks/console/apt.yml b/tasks/console/apt.yml index e2ede98..b667239 100644 --- a/tasks/console/apt.yml +++ b/tasks/console/apt.yml @@ -1,5 +1,6 @@ - name: Install Console modules ansible.builtin.apt: + update_cache: yes pkg: "{{ item }}" loop: "{{ apt }}" diff --git a/tasks/console/chrome_repo.yml b/tasks/console/chrome_repo.yml new file mode 100644 index 0000000..736dd74 --- /dev/null +++ b/tasks/console/chrome_repo.yml @@ -0,0 +1,5 @@ +- name: Add Chrome Repos + ansible.builtin.apt_repository: + repo: deb http://dl.google.com/linux/chrome/deb/ stable main + state: present + filename: google-chrome