- hosts: splunk_uf_Windows tasks: - name: Téléchargement des sources win_get_url: url: "https://{{ repo_url }}/{{ projet }}/{{ app_name }}" dest: c:\temp\ username: "{{ repo_user }}" password: "{{ repo_password }}" tags: install - hosts: splunk_uf_Windows tasks: - name: Installation de l'agent Splunk UF win_package: path: C:\Temp\splunkforwarder-9.3.0-51ccf43db5bd-x64-release.msi #product_id: "{6C243C23-42E6-46E7-AECC-81428601A55E}" state: present arguments: 'INSTALLDIR="C:\Program Files\SplunkUniversalForwarder" AGREETOLICENSE=Yes /quiet SPLUNK_USER="admin" SPLUNK_PASSWORD="Adm1nPa$$w0rd"'