ansible/library
Dag Wieers 1d27909ec0 Added a fail module in order to fail execution on certain conditions
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.
2012-10-02 21:40:28 +02:00
..
apt Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
apt_repository Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
assemble Module DOCUMENTATION: assemble, authorized_key, command, copy 2012-09-28 21:55:49 +02:00
async_status attempt at DOCUMENTATION for async_status 2012-10-02 09:56:55 +02:00
async_wrapper whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
authorized_key Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
command Merge pull request #1170 from jpmens/docspatch01 2012-10-01 05:19:16 -07:00
copy Module DOCUMENTATION: assemble, authorized_key, command, copy 2012-09-28 21:55:49 +02:00
easy_install Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
facter Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
fail Added a fail module in order to fail execution on certain conditions 2012-10-02 21:40:28 +02:00
fetch DOCUMENTATION for fetch,mount,ohai,easy_install 2012-09-30 12:29:32 +02:00
file Added attribution to all module DOCUMENTATION strings 2012-10-01 12:37:51 +02:00
fireball Teach fireball mode to disable the fireball by paying attention to 'minutes=N' (default 30) and do not let fireball module crash 2012-10-01 22:41:00 -04:00
get_url Added attribution to all module DOCUMENTATION strings 2012-10-01 12:37:51 +02:00
git Add module documentation for git, group, service, and user 2012-09-29 23:50:25 -07:00
group Add module documentation for git, group, service, and user 2012-09-29 23:50:25 -07:00
ini_file removed EXAMPLES from ini_file 2012-09-29 01:26:40 +02:00
lineinfile Merge pull request #1170 from jpmens/docspatch01 2012-10-01 05:19:16 -07:00
mount DOCUMENTATION for fetch,mount,ohai,easy_install 2012-09-30 12:29:32 +02:00
mysql_db Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
mysql_user Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
nagios Fix issue https://github.com/ansible/ansible/issues/1194 2012-10-02 15:12:33 +02:00
ohai Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
pause standardize DOCUMENTATION for nagios, pause 2012-10-02 09:15:11 +02:00
ping Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
pip Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
postgresql_db Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
postgresql_user DOCUMENTATION for fetch,mount,ohai,easy_install 2012-09-30 12:29:32 +02:00
raw Added attribution to all module DOCUMENTATION strings 2012-10-01 12:37:51 +02:00
seboolean Added DOCUMENTATION to seboolean module. 2012-09-30 15:41:00 +02:00
selinux Added DOCUMENTATION to selinux module. 2012-09-30 15:34:26 +02:00
service Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
setup Added attribution to all module DOCUMENTATION strings 2012-10-01 12:37:51 +02:00
shell Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
slurp module docs for slurp 2012-09-30 16:58:15 +02:00
subversion Added DOCUMENTATION to subversion module. 2012-09-29 16:28:55 +02:00
supervisorctl Added DOCUMENTATION to supervisorctl module. 2012-09-29 21:02:07 +02:00
template Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
user Jumbo DOCUMENTATION patch 2012-10-01 09:18:54 +02:00
virt Attribute author of virt correctly (sorry) 2012-09-30 14:08:47 +02:00
wait_for Module DOCUMENTATION for template, wait_for, and yum 2012-09-29 00:49:02 +02:00
yum Module DOCUMENTATION for template, wait_for, and yum 2012-09-29 00:49:02 +02:00