mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 15:07:21 +00:00
remove loop and install each package in its own task
This commit is contained in:
1 parent
f1f9387e63
commit
2b452a9fbf
1 file changed
+46
-41
@@ -8,7 +8,7 @@
|
|||||||
package_params: "'/Global'"
|
package_params: "'/Global'"
|
||||||
source: "{{ repo_url }}"
|
source: "{{ repo_url }}"
|
||||||
|
|
||||||
- name: Add new internal Choco source (client machines)
|
- name: Add new internal Choco source
|
||||||
win_chocolatey_source:
|
win_chocolatey_source:
|
||||||
name: EPCC
|
name: EPCC
|
||||||
state: present
|
state: present
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
# reboot_timeout_sec: 1200
|
# reboot_timeout_sec: 1200
|
||||||
# ???
|
# ???
|
||||||
|
|
||||||
- name: Disable the default public Choco source (client machines)
|
- name: Disable the default public Choco source
|
||||||
win_chocolatey_source:
|
win_chocolatey_source:
|
||||||
name: chocolatey
|
name: chocolatey
|
||||||
state: disabled
|
state: disabled
|
||||||
@@ -29,80 +29,85 @@
|
|||||||
- name: Client Packages
|
- name: Client Packages
|
||||||
tags: client_packages
|
tags: client_packages
|
||||||
block:
|
block:
|
||||||
- name: Install Chocolatey GUI (client machines)
|
- name: Install Chocolatey GUI
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: ChocolateyGUI
|
name: ChocolateyGUI
|
||||||
state: present
|
state: present
|
||||||
package_params: "'/Global'"
|
package_params: "'/Global'"
|
||||||
|
|
||||||
- name: Install Microsoft office (client machines)
|
- name: Install Microsoft office
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: microsoft-office-deployment
|
name: microsoft-office-deployment
|
||||||
state: present
|
state: present
|
||||||
package_params: "'/Product:ProPlus2021Volume /LicenseKey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH'"
|
package_params: "'/Product:ProPlus2021Volume /LicenseKey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH'"
|
||||||
tags: install_office
|
tags: install_office
|
||||||
|
|
||||||
- name: Install Firefox (client machines)
|
- name: Install Firefox
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: firefox
|
name: firefox
|
||||||
state: present
|
state: present
|
||||||
|
tags: install_firefox
|
||||||
|
|
||||||
- name: Install Google Chrome (client machines)
|
- name: Install Google Chrome
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: GoogleChrome
|
name: GoogleChrome
|
||||||
state: present
|
state: present
|
||||||
ignore_checksums: true # workaround for chrome checksum issues.
|
ignore_checksums: true # workaround for chrome checksum issues.
|
||||||
|
tags: install_chrome
|
||||||
|
|
||||||
- name: Install R (client machines)
|
- name: Install R
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: R.Project
|
name: R.Project
|
||||||
state: present
|
state: present
|
||||||
|
tags: install_r
|
||||||
|
|
||||||
#- name: Install Python3.10 (client machines)
|
- name: Install Python3.12
|
||||||
# win_chocolatey:
|
win_chocolatey:
|
||||||
# name: python310
|
name: python312
|
||||||
# state: present
|
state: present
|
||||||
# when: inventory_hostname in groups['meta-Tags_client']
|
tags: install_python
|
||||||
|
|
||||||
- name: Install RStudio (client machines)
|
- name: Install RStudio
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: r.studio
|
name: r.studio
|
||||||
state: present
|
state: present
|
||||||
|
tags: install_rstudio
|
||||||
|
|
||||||
- name: Install Other Software (client machines)
|
- name: Install vscode
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: "{{ item }}"
|
name: vscode
|
||||||
state: present
|
state: present
|
||||||
loop:
|
tags: install_vscode
|
||||||
#- vscode.install
|
|
||||||
- vscode
|
|
||||||
#- KB4019990
|
|
||||||
- python312
|
|
||||||
- notepadplusplus
|
|
||||||
- windirstat
|
|
||||||
- adobereader
|
|
||||||
- DotNet4.6
|
|
||||||
- dotnet4.7.2
|
|
||||||
# loop control ???
|
|
||||||
|
|
||||||
#- name: Install office365proplus (client machines)
|
- name: Install notepadplusplus
|
||||||
# win_chocolatey:
|
win_chocolatey:
|
||||||
# name: office365proplus
|
name: notepadplusplus
|
||||||
# state: present
|
state: present
|
||||||
# package_params: "'/Global /language:en-GB'"
|
tags: install_notepadplusplus
|
||||||
|
|
||||||
|
- name: Install windirstat
|
||||||
|
win_chocolatey:
|
||||||
|
name: windirstat
|
||||||
|
state: present
|
||||||
|
tags: install_windirstat
|
||||||
|
|
||||||
#- name: Install veeam-agent (client machines)
|
- name: Install adobereader
|
||||||
# win_chocolatey:
|
win_chocolatey:
|
||||||
# name: veeam-agent
|
name: adobereader
|
||||||
# state: present
|
state: present
|
||||||
|
tags: install_adobereader
|
||||||
|
|
||||||
# I think Firefox adds one automatically...
|
- name: Install DotNet4.6
|
||||||
#- name: Create Firefox shortcut on the desktop
|
win_chocolatey:
|
||||||
# community.windows.win_shortcut:
|
name: DotNet4.6
|
||||||
# src: C:\Program Files\Mozilla Firefox\Firefox.exe
|
state: present
|
||||||
# dest: C:\Users\Public\Desktop\Mozilla Firefox.lnk
|
tags: install_dotnet46
|
||||||
# icon: C:\Program Files\Mozilla Firefox\Firefox.exe,0
|
|
||||||
|
- name: Install dotnet4.7.2
|
||||||
|
win_chocolatey:
|
||||||
|
name: dotnet4.7.2
|
||||||
|
state: present
|
||||||
|
tags: install_dotnet472
|
||||||
|
|
||||||
- name: Create RStudio shortcut on the desktop
|
- name: Create RStudio shortcut on the desktop
|
||||||
community.windows.win_shortcut:
|
community.windows.win_shortcut:
|
||||||
|
|||||||
Reference in new issue
Block a user