mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 11:37:21 +00:00
Add win_package role
This commit is contained in:
1 parent
4c190320ce
commit
457db4d6af
5 files changed
+22
No files matched your search
@@ -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
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
- import_tasks: "{{ package_action }}.yml"
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: Uninstall Chocolatey package
|
||||||
|
win_chocolatey:
|
||||||
|
name: "{{ package }}"
|
||||||
|
state: absent
|
||||||
Reference in new issue
Block a user