Ansible 7z Installation: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 1: Zeile 1:
 
*cd /mnt/share
 
*cd /mnt/share
*wget wget https://7-zip.org/a/7z2201-x64.exe
+
*wget https://7-zip.org/a/7z2201-x64.exe
 
*cd ~/ansible
 
*cd ~/ansible
 
*cat win10-7z.yml         
 
*cat win10-7z.yml         

Aktuelle Version vom 7. Februar 2023, 15:07 Uhr

---
- 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