File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change 2
2
- name : Install OS-level apps
3
3
hosts : all
4
4
become : yes
5
- vars :
6
- - apt_repo_list_file : /etc/apt/sources.list.d/google-chrome.list
7
5
tasks :
8
6
- stat :
9
- path : " {{ apt_repo_list_file }} "
7
+ path : " /etc/apt/sources.list.d/google-chrome.list "
10
8
register : google_apt_exists
11
9
ignore_errors : yes
12
- - name : dir
13
- copy :
14
- content : " {{ item }}"
15
- dest : " {{ apt_repo_list_file }}"
16
- owner : root
17
- group : root
18
- mode : 644
10
+ - name : Add Google Chrome directory
11
+ apt_repository :
12
+ repo : " {{ item }}"
13
+ state : present
19
14
loop :
20
- - " deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main"
21
- - " deb http://dl.google.com/linux/chrome/deb/ stable main"
15
+ - " deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main"
16
+ - " deb http://dl.google.com/linux/chrome/deb/ stable main"
22
17
- name : Add Google Chrome key
23
- shell : wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
18
+ apt_key :
19
+ url : https://dl-ssl.google.com/linux/linux_signing_key.pub
20
+ state : present
24
21
- name : Install apps
25
22
apt :
26
- update_cache : yes
27
- name :
28
- - google-chrome-stable
29
- - git
23
+ update_cache : yes
24
+ name :
25
+ - google-chrome-stable
26
+ - git
You can’t perform that action at this time.
0 commit comments