From 8bdd80f62856023265a720fbdba05c3908c41113 Mon Sep 17 00:00:00 2001 From: abrown38 Date: Fri, 12 Apr 2024 14:09:27 +0000 Subject: [PATCH] add repo and install chocolateyGUI on chocolatey server --- .../roles/win_chocolatey/tasks/chocolatey.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ansible/roles/win_chocolatey/tasks/chocolatey.yml b/ansible/roles/win_chocolatey/tasks/chocolatey.yml index 4d348ff..c1102d7 100644 --- a/ansible/roles/win_chocolatey/tasks/chocolatey.yml +++ b/ansible/roles/win_chocolatey/tasks/chocolatey.yml @@ -44,7 +44,7 @@ loop_control: loop_var: package - # taken from jborean93.win_chocolatey_server handler and modified with longer timeout + # taken from jborean93.win_chocolatey_server handler and modified with longer timeout (Create handler???) - name: open package page to get Chocolatey server to load nuget packages win_uri: url: http://localhost:{{ opt_chocolatey_server_http_port }}/chocolatey/Packages @@ -53,3 +53,19 @@ url_timeout: 600 tags: refresh_packages + - name: package installs + tags: install_packages + # possible reboot need to refresh path (check choco path to test for reboot???) + block: + - name: Add new internal Choco source (client machines) + win_chocolatey_source: + name: EPCC + state: present + source: 'http://localhost/chocolatey' + + - name: Install Chocolatey GUI (client machines) + win_chocolatey: + name: ChocolateyGUI + state: present + package_params: "'/Global'" +