Ansible 7z Installation
Version vom 6. Februar 2023, 21:18 Uhr von Thomas.will (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „*cd ~/ansible *cat win10-7z.yml <pre> --- - name: win7z install hosts: 10.0.10.102 tasks: - name: Install 7zip and use a file version for the…“)
- cd ~/ansible
- cat win10-7z.yml
---
- name: win7z install
hosts: 10.0.10.102
tasks:
- name: Install 7zip and use a file version for the installation check
ansible.windows.win_package:
path: \\10.0.10.101\share\7z.exe
arguments: /S
creates_path: C:\Program Files\7-Zip\7z.exe
creates_version: 16.04
state: present
- ansible-playbook win10-7z.yml