comando de execução ansible no host remoto em segundo plano
Estou tentando iniciar o processo de filebeat (ou qualquer outro processo que será executado continuamente sob demanda) em vários hosts usando ansible. Não quero esperar que o processo continue em execução. Eu quero ansible para disparar e esquecer e sair e manter o processo remoto rodando em segundo plano. Eu tentei usar as opções abaixo:
---
- hosts: filebeat
tasks:
- name: start filebeat
option a) command: filebeat -c filebeat.yml &
option b) command: nohup filebeat -c filebeat.yml &
option c) shell: filebeat -c filebeat.yml &
async: 0 //Tried without as well. If its > 0 then it only waits for that much of time and terminates the filebeat process on remote host and comes out.
poll: 0