File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 9
9
path : " {{ apt_repo_list_file }}"
10
10
register : google_apt_exists
11
11
ignore_errors : yes
12
- - name : Add Google Chrome repo
13
- copy : content={{ item.content }} dest={{ item.dest }}
14
- with_items :
15
- - {content: 'deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main', dest: '{{ apt_repo_list_file }}'}
16
- - {content: 'deb http://dl.google.com/linux/chrome/deb/ stable main', dest: '{{ apt_repo_list_file }} owner=root group=root mode=644'}
17
- when : google_apt_exists.rc == 1
12
+ - name : dir
13
+ copy :
14
+ content : " {{ item }}"
15
+ dest : " {{ apt_repo_list_file }}"
16
+ owner : root
17
+ group : root
18
+ mode : 644
19
+ 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"
22
+ - name : Add Google Chrome key
23
+ shell : wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
18
24
- name : Install apps
19
25
apt :
20
- update_cache : yes
21
- name :
22
- - google-chrome-stable
23
- - git
26
+ update_cache : yes
27
+ name :
28
+ - google-chrome-stable
29
+ - git
You can’t perform that action at this time.
0 commit comments