async: 15 will set a "time to live" for 15 seconds to the task.

Poll: 0 means "fire and forget, I don't want any output".

Sounds like you might want to do poll: 5 or so.

It also sounds like your project might benefit from a service init script,
and then you can just use the service module.




On Mon, Nov 25, 2013 at 1:38 PM, Michael Slinn <[email protected]> wrote:

> I have a similar problem, and I read the docs, but I must be not seeing
> something obvious. Here is a fragment of a yaml file (the entire file is
> here<https://github.com/mslinn/ansible-ec2-play/blob/master/yaml/launch.yaml>
> ):
>
>    - name: Launch project
>      command: (sleep 2; /bin/echo "Of course your realize that this means
> war" > $home/nohup.out)
>      async: 15
>      poll: 0
>
> There is no output from that step when run with -vv. What am I missing?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to