Ansible 7z Installation

Aus xinux.net
Zur Navigation springen Zur Suche springen
---
- 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