Add win_package role

This commit is contained in:
abrown38 committed 2025-05-22 10:10:20 +01:00
1 parent 4c190320ce
commit 457db4d6af
5 files changed
+22

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
---
- hosts: "{{ target_vm }}:&meta-type_client"
gather_facts: false
vars_files:
- ../vars/common.yml
- ../vars/connection.yml
roles:
- role: win_package
tags: win_package
@@ -0,0 +1 @@
package_action: install
@@ -0,0 +1,5 @@
---
- name: Install Chocolatey package
win_chocolatey:
name: "{{ package }}"
state: present
+2
View File
@@ -0,0 +1,2 @@
---
- import_tasks: "{{ package_action }}.yml"
@@ -0,0 +1,5 @@
---
- name: Uninstall Chocolatey package
win_chocolatey:
name: "{{ package }}"
state: absent