How do you handle commands that affect network connectivity?

34 views
Skip to first unread message

Eric Chaves

unread,
Nov 28, 2013, 2:11:39 PM11/28/13
to ansible...@googlegroups.com
Hi folks,

my playbooks have tasks that may affect the network connectivity, for example by reloading firewall rules, and when those tasks are executed the playbook "hangs" waiting forever (or until a timeout, which is error anyway). 

How do you guys handle tasks like this? Is there some way to instruct ansible that it shouldn't wait for the return on a particular tasks (kind of like a fire-and-forget)?

Regards,

Eric

Michel Blanc

unread,
Nov 28, 2013, 2:13:48 PM11/28/13
to ansible...@googlegroups.com

Yes. Use :
poll: 0

Sée http://www.ansibleworks.com/docs/playbooks_async.html

Chers,

M

--
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 ansible-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Eric Chaves

unread,
Nov 28, 2013, 2:25:40 PM11/28/13
to ansible...@googlegroups.com
Thanks!

--
Eric Chaves
(11) 98139-9880


2013/11/28 Michel Blanc <mblanc....@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/ztHFe2kCZfU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages