Re: [ansible-project] Exit playbook and return an error

2017-10-11 Thread Kai Stian Olstad
On 11.10.2017 11:16, 'Colm Mcnabola' via Ansible Project wrote: Is this possible to do the script locally and then still be able to connect to hosts in a later stage of the same playbook? for example task: - name: local run of script against inventory Yes, the play I posted has "- host

Re: [ansible-project] Exit playbook and return an error

2017-10-11 Thread 'Colm Mcnabola' via Ansible Project
Is this possible to do the script locally and then still be able to connect to hosts in a later stage of the same playbook? for example task: - name: local run of script against inventory On Tue, Oct 10, 2017 at 5:34 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 10

Re: [ansible-project] Exit playbook and return an error

2017-10-10 Thread Kai Stian Olstad
On 10. okt. 2017 15:35, 'Colm Mcnabola' via Ansible Project wrote: Hi, I want to insert an failure on my playbook where if the hostgroup isnt in the inventory, it fails. Inventory path is inventory/"environment_name"/inventory and looks similiar to this [NodeGroup1] node1@node [NodeGroup2] no

[ansible-project] Exit playbook and return an error

2017-10-10 Thread 'Colm Mcnabola' via Ansible Project
Hi, I want to insert an failure on my playbook where if the hostgroup isnt in the inventory, it fails. Inventory path is inventory/"environment_name"/inventory and looks similiar to this [NodeGroup1] node1@node [NodeGroup2] node2@node. node3@node. When running a playbook using --extra var