Does the ansible-playbook command can be run in background ?

The salt command *salt state.sls* can be run in background by use *--async* parameter, does ansible has some parameters to run ansible-playbook command in background ?

Now I use nohup to achieve my goal, like this:

nohup ansible-playbook main.yml &

But this is not I want. Does anyone has a good idea ?

Please be more specific. What is nohup lacking that salt --async has that you would like?

Ansible is interactive by nature, so it uses stdin. Using nohup will only
work if the playbook runs very nicely. Any arising question (for example,
accept an unknown ssh key) will stop the playbook. So I believe that one of
the the ´async´ functionalities missing is handling playbook questions.
If the use of nohup is just to capture both stdout & stderr, there are
other ways to do it.

Javier Palacios