Re: [ansible-project] Re: How do you set up a confirmation prompt before running a playbook?

2014-08-01 Thread Outsider
Maybe a fail_all module or a modification of the current fail module to add an all argument? On 1 Aug 2014 22:17, "Outsider" wrote: > This got me thinking that we kinda need an action to mimic > any_errors_fatal in a task, would be very helpful in cases like this.. > where yo

Re: [ansible-project] Re: How do you set up a confirmation prompt before running a playbook?

2014-08-01 Thread Outsider
This got me thinking that we kinda need an action to mimic any_errors_fatal in a task, would be very helpful in cases like this.. where you need to trigger a whole playbook failure conditionlly without affecting the default failure behavior.. anything like that in the works? On 1 Aug 2014 22:08, "M

Re: [ansible-project] Re: Can ansible iterate through lines in a file?

2014-08-01 Thread Outsider
Calling lineinfile without any other arguments like my example would insert the lines at the end of the file if they don't already exist. You can modify this behavior using insertbefore and insertafter, both take regex as a value, so you can determine certain sections to add the new lines to.. us