How do you handle commands that affect network connectivity?

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

Yes. Use :
poll: 0

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

Chers,

M

Thanks!