mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 14:17:21 +00:00
115 lines
3.3 KiB
YAML
115 lines
3.3 KiB
YAML
---
|
|
- name: Chocolatey
|
|
tags: client_chocolatey
|
|
block:
|
|
- name: Install Chocolatey
|
|
win_chocolatey:
|
|
name: Chocolatey
|
|
package_params: "'/Global'"
|
|
source: "{{ repo_url }}"
|
|
|
|
- name: Add new internal Choco source (client machines)
|
|
win_chocolatey_source:
|
|
name: EPCC
|
|
state: present
|
|
source: "{{ repo_url }}"
|
|
|
|
# https://github.com/chocolatey/chocolatey-ansible/issues/22
|
|
#- name: Reboot after Chocolatey installation
|
|
# ansible.windows.win_reboot:
|
|
# reboot_timeout_sec: 1200
|
|
# ???
|
|
|
|
- name: Disable the default public Choco source (client machines)
|
|
win_chocolatey_source:
|
|
name: chocolatey
|
|
state: disabled
|
|
|
|
- name: Client Packages
|
|
tags: client_packages
|
|
block:
|
|
- name: Install Chocolatey GUI (client machines)
|
|
win_chocolatey:
|
|
name: ChocolateyGUI
|
|
state: present
|
|
package_params: "'/Global'"
|
|
|
|
- name: Install Microsoft office (client machines)
|
|
win_chocolatey:
|
|
name: microsoft-office-deployment
|
|
state: present
|
|
package_params: "'/Product:ProPlus2021Volume /LicenseKey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH'"
|
|
tags: install_office
|
|
|
|
- name: Install Firefox (client machines)
|
|
win_chocolatey:
|
|
name: firefox
|
|
state: present
|
|
|
|
- name: Install Google Chrome (client machines)
|
|
win_chocolatey:
|
|
name: GoogleChrome
|
|
state: present
|
|
|
|
- name: Install R (client machines)
|
|
win_chocolatey:
|
|
name: R.Project
|
|
state: present
|
|
|
|
#- name: Install Python3.10 (client machines)
|
|
# win_chocolatey:
|
|
# name: python310
|
|
# state: present
|
|
# when: inventory_hostname in groups['meta-Tags_client']
|
|
|
|
- name: Install RStudio (client machines)
|
|
win_chocolatey:
|
|
name: r.studio
|
|
state: present
|
|
|
|
- name: Install Other Software (client machines)
|
|
win_chocolatey:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop:
|
|
#- vscode.install
|
|
- vscode
|
|
#- KB4019990
|
|
- python312
|
|
- notepadplusplus
|
|
- windirstat
|
|
- adobereader
|
|
- DotNet4.6
|
|
- dotnet4.7.2
|
|
# loop control ???
|
|
|
|
#- name: Install office365proplus (client machines)
|
|
# win_chocolatey:
|
|
# name: office365proplus
|
|
# state: present
|
|
# package_params: "'/Global /language:en-GB'"
|
|
|
|
|
|
#- name: Install veeam-agent (client machines)
|
|
# win_chocolatey:
|
|
# name: veeam-agent
|
|
# state: present
|
|
|
|
# I think Firefox adds one automatically...
|
|
#- name: Create Firefox shortcut on the desktop
|
|
# community.windows.win_shortcut:
|
|
# src: C:\Program Files\Mozilla Firefox\Firefox.exe
|
|
# dest: C:\Users\Public\Desktop\Mozilla Firefox.lnk
|
|
# icon: C:\Program Files\Mozilla Firefox\Firefox.exe,0
|
|
|
|
- name: Create RStudio shortcut on the desktop
|
|
community.windows.win_shortcut:
|
|
src: C:\Program Files\RStudio\rstudio.exe
|
|
dest: C:\Users\Public\Desktop\RSTudio.lnk
|
|
icon: C:\Program Files\RStudio\rstudio.exe,0
|
|
|
|
- name: Create ChocolateyGUI shortcut on the desktop
|
|
community.windows.win_shortcut:
|
|
src: C:\Program Files (x86)\Chocolatey GUI\ChocolateyGui.exe
|
|
dest: C:\Users\Public\Desktop\Install Software.lnk
|
|
icon: C:\Program Files (x86)\Chocolatey GUI\ChocolateyGui.exe,0 |