mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-11-01 22:30:15 +00:00
win_client role
This commit is contained in:
1 parent
797900ee69
commit
767de7cffe
6 files changed
+220
No files matched your search
@@ -0,0 +1,112 @@
|
||||
---
|
||||
- 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 office365proplus (client machines)
|
||||
# win_chocolatey:
|
||||
# name: office365proplus
|
||||
# state: present
|
||||
# package_params: "'/Global /language:en-GB'"
|
||||
# when: inventory_hostname in groups['meta-Tags_client']
|
||||
|
||||
- name: Install Firefox (client machines)
|
||||
win_chocolatey:
|
||||
name: firefox
|
||||
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
|
||||
- firefox
|
||||
- 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'"
|
||||
# when: inventory_hostname in groups['meta-Tags_client']
|
||||
|
||||
|
||||
- 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
|
||||
Reference in new issue
Block a user