comando de ejecución ansible en host remoto en segundo plano
Estoy tratando de iniciar el proceso filebeat (o para cualquier otro proceso que se ejecutará continuamente a pedido) en varios hosts usando ansible. No quiero ansible esperar hasta que el proceso siga ejecutándose. Quiero ansible disparar y olvidar y salir y mantener el proceso remoto ejecutándose en segundo plano. He intentado usar las siguientes opciones:
---
- 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