]> git.somenet.org - root/pub/somesible.git/blob - roles/client/google-chrome/tasks/main.yml
roles/service/nextcloud/defaults
[root/pub/somesible.git] / roles / client / google-chrome / tasks / main.yml
1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
6 #
7 ---
8 - name: add google-chrome.list to apt
9   copy:
10     src: "{{item}}"
11     dest: "/etc/apt/sources.list.d/google-chrome.list"
12     mode: 0644
13     owner: "root"
14     group: "root"
15   with_first_found:
16     - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/google-chrome.list"
17     - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/google-chrome.list"
18     - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/google-chrome.list"
19     - "default/google-chrome.list"
20   register: apt_list_changes
21
22
23 - name: add google-chrome key to keyring
24   apt_key:
25     url: https://dl.google.com/linux/linux_signing_key.pub
26     state: present
27   tags: "online"
28
29
30 - name: update the repository cache
31   apt:
32     update_cache: yes
33   tags: "online"
34   when: apt_list_changes.changed
35
36
37 - name: install google-chrome
38   apt:
39     pkg:
40     - google-chrome-stable
41     state: present
42     policy_rc_d: 101
43   tags: "online"