Re: [ansible-project] multiple async actions (background tasks) question

2014-06-25 Thread Dmitry Makovey
Sorry for being unclear - I meant that I can implement above functionality either via ansible (albeit I have no clue on how to make certain things run in the background as per my question) or write a script that does all of that and have a single ansible statement like this: - shell: reconfigur

Re: [ansible-project] multiple async actions (background tasks) question

2014-06-24 Thread Michael DeHaan
If you are polling on an async job, they will still be executed sequentially. I do not see where you are calling a shell script in your example, so I can't tell what you mean by the last part of your question. Can you elaborate or show that part? On Mon, Jun 23, 2014 at 3:39 PM, Dmitry Makovey

[ansible-project] multiple async actions (background tasks) question

2014-06-23 Thread Dmitry Makovey
Hi, I'm trying to reconfigure a running OS to use bridge vs the actual interface. My playbook so far: - name: copy bridge config template: src=if-br.j2 dest=/etc/sysconfig/network-scripts/if-{{ bridge_name }} backup=yes - name: copy interface config template: src=if-nic.j2 dest=/etc/sysconf