Ansible/yml/Windows-Install-msi.yml
2023-07-03 20:39:45 +02:00

17 lines
521 B
YAML

---
- name: Install Apache from an MSI
hosts: windows
gather_facts: no
become: false
tasks:
- name: Download the Apache installer
win_get_url:
url: 'http://mirror.cc.columbia.edu/pub/software/apache//httpd/binaries/win32/httpd-2.2.25-win32-x86-no_ssl.msi'
dest: 'C:\Users\Administrator\Downloads\httpd-2.2.25-win32-x86-no_ssl.msi'
- name: Install MSI
win_package:
path: 'C:\Users\Administrator\Downloads\httpd-2.2.25-win32-x86-no_ssl.msi'
state: present
...