Ansible 7z Installation
Version vom 7. Februar 2023, 15:07 Uhr von Thomas.will (Diskussion | Beiträge)
- cd /mnt/share
- wget https://7-zip.org/a/7z2201-x64.exe
- 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