In the example at http://docs.ansible.com/ansible/dev_guide/developing_api.html#python-api-2-0
You would use `async` in building your tasks defined in the `play_source` dict. Effectively in 2.x you are building a play, and that play is where you put those options. On Mon, Feb 13, 2017 at 7:48 AM, fhd <[email protected]> wrote: > Before Ansible 2, one could run a background module like so: > > self.runner = ansible.runner.Runner( > module_name=self.module_name, > module_args=self.module_args, > pattern=self.pattern, > forks=self.forks, > sudo=True, > background=self.background) > > > How can I get the same background functionality in Ansible 2? I've looked > at all of the possible Options params and can't seem to find it. > > -- > 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]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/ansible-project/4159d0b7-482b-4c98-8641-c9c0fb5a2f78%40googlegroups. > com > <https://groups.google.com/d/msgid/ansible-project/4159d0b7-482b-4c98-8641-c9c0fb5a2f78%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v-z8ruJZqQP2v9wJwz%3DJYRzwPY1PZWvP4Ls%2BO3RO%2BBxJA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
