Hello
I'm new to Ansible and have been researching a way to stop a task from
making a change if any of the tasks in the playbook fail.
Is there a way to do this? my playbook has three tasks, if the install
Django fails i don't want the first two to commit. But they are reported as
'changed' once the playbook finishes.
tasks:
- name: update
command: apt-get update
- name: install pip
apt: pkg=python-pip
- name: install django
command: pip install django
Thanks in advance.
--
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/fc240242-9fdb-436a-bddf-d9decbdb4922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.