Ansible 7z Installation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(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…“) |
|||
| Zeile 1: | Zeile 1: | ||
| + | *cd /mnt/share | ||
| + | *wget wget https://7-zip.org/a/7z2201-x64.exe | ||
*cd ~/ansible | *cd ~/ansible | ||
*cat win10-7z.yml | *cat win10-7z.yml | ||
Version vom 6. Februar 2023, 21:19 Uhr
- cd /mnt/share
- wget 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