mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1d27909ec0
In some cases you may want to deliberately fail the execution of a playbook. In our provisioning workflow we want to have safeguards in place to avoid provisioning systems that are already in production. Since we reboot physical and virtual systems, it is mandatory we take all the precautions to prevent accidental provisioning. So in our use-case we have the following at the very start of the provisioning playbook: ### Safeguard to protect production systems - local_action: fail msg="System is not ready to be staged according to CMDB" only_if: "'$cmdb_status' != 'to-be-staged'" and we repeat the same task in the (separate included) play that takes care of (re)booting the system using our own boot-media, so that it cannot be accidentally separately run by someone. |
12 years ago | |
---|---|---|
.. | ||
apt | 12 years ago | |
apt_repository | 12 years ago | |
assemble | ||
async_status | 12 years ago | |
async_wrapper | ||
authorized_key | 12 years ago | |
command | 12 years ago | |
copy | ||
easy_install | 12 years ago | |
facter | 12 years ago | |
fail | 12 years ago | |
fetch | 12 years ago | |
file | 12 years ago | |
fireball | 12 years ago | |
get_url | 12 years ago | |
git | ||
group | ||
ini_file | ||
lineinfile | 12 years ago | |
mount | 12 years ago | |
mysql_db | 12 years ago | |
mysql_user | 12 years ago | |
nagios | 12 years ago | |
ohai | 12 years ago | |
pause | 12 years ago | |
ping | 12 years ago | |
pip | 12 years ago | |
postgresql_db | 12 years ago | |
postgresql_user | 12 years ago | |
raw | 12 years ago | |
seboolean | 12 years ago | |
selinux | 12 years ago | |
service | 12 years ago | |
setup | 12 years ago | |
shell | 12 years ago | |
slurp | 12 years ago | |
subversion | ||
supervisorctl | ||
template | 12 years ago | |
user | 12 years ago | |
virt | 12 years ago | |
wait_for | ||
yum |