forked from r3ap3rpy/ansibler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_win_chrome_deploy.yaml
45 lines (39 loc) · 1.19 KB
/
test_win_chrome_deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- hosts: win
gather_facts: no
tasks:
- name: Copy the bundle.zip
win_copy:
src: GoogleChromeEnterpriseBundle64.zip
dest: C:\\Temp\\
- name: Extract the bundle
win_unzip:
src: c:\\Temp\\GoogleChromeEnterpriseBundle64.zip
dest: C:\\Temp\\Chrome
- name: Install Chrome
win_package:
path: C:\\Temp\\Chrome\\Installers\\GoogleChromeStandaloneEnterprise64.msi
product_id: '{B93553B7-F366-388E-ADB8-EDEAC41EADC2}'
wait: yes
state: present
when: ACTION == "Install"
- name: Uninstall Chrome
win_package:
path: C:\\Temp\\Chrome\\Installers\\GoogleChromeStandaloneEnterprise64.msi
product_id: '{B93553B7-F366-388E-ADB8-EDEAC41EADC2}'
wait: yes
state: absent
when: ACTION == "Uninstall"
# - name: Uninstall Chrome Update helper
# win_package:
# path: C:\\Temp\\Chrome\\Installers\\GoogleChromeStandaloneEnterprise64.msi
# wait: yes
# state: absent
# when: ACTION == "Uninstall"
- name: Clean up the bundle.zip
win_file:
path: C:\\Temp\\GoogleChromeEnterpriseBundle64.zip
state: absent
- name: Clean up the bundle
win_file:
path: C:\\Temp\\Chrome
state: absent