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