Re: [ansible-project] return code as the input value for another play

2021-03-23 Thread danish09
Thanks both. Using Tower, unfortunately, is not something that I can jump over to. Though, i might just give it a read. For now, I have just gone back to calling 2 separate playbooks individually. Thanks On Monday, 22 March 2021 at 15:32:25 UTC Brian Coca wrote: > Look at AWX/Tower workflows.

Re: [ansible-project] return code as the input value for another play

2021-03-22 Thread Brian Coca
Look at AWX/Tower workflows. https://docs.ansible.com/ansible-tower/latest/html/userguide/workflows.html -- -- Brian Coca -- 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

[ansible-project] return code as the input value for another play

2021-03-21 Thread danish09
Hi, My goal is to implement 2 separate playbooks from the root main.yml, however, I would like to execute the 2nd playbook only when the 1st gives a return code of 0. --- - hosts: all - import_playbook: sftp.yml - import_playbook: reboot.yml --- - hosts: sftp01 tasks: - name: create