--- - name: activation du distributed search become: yes become_user: "{{ privileged_user }}" hosts: all:!splunk_uf_linux:!splunk_uf_windows tasks: - name: commande d'activation command: "{{ splunk_exec }} add search-server https://{{ hosts }}:8089 -auth admin:password -remoteUsername adminsplunk -remotePassword 921223Jocpam!?"