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.
 
 
 
 
 
Go to file
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.
12 years ago
bin If all hosts in a play fail, fail the whole playbook and don't bother printing out every remaining task. 12 years ago
docs/man Complain when modules do not have documentation. 12 years ago
examples Simplify register example 12 years ago
hacking Complain when modules do not have documentation. 12 years ago
lib/ansible Only gather facts once per node per playbook run 12 years ago
library Added a fail module in order to fail execution on certain conditions 12 years ago
packaging distribution packaging should install all manpages 12 years ago
test Allow non-string types in with_items variables 12 years ago
.gitignore Ignoring PyCharm/IntelliJ and Mac OS X stuff 12 years ago
CHANGELOG.md organize changelog 12 years ago
CONTRIBUTING.md update contributing file 12 years ago
COPYING license file should be in source tree 13 years ago
MANIFEST.in Add some docs/examples 12 years ago
Makefile Make use of UTC dates for RPM timestamp 12 years ago
README.md Update website link 12 years ago
RELEASES.txt Release version bump 12 years ago
VERSION Release version bump 12 years ago
setup.py Add package to setup.py 12 years ago

README.md

Ansible

Ansible is a radically simple configuration-management, deployment, task-execution, and multinode orchestration framework.

Read the documentation and more at http://ansible.cc

Design Principles

  • Dead simple setup
  • Super fast & parallel by default
  • No server or client daemons; use existing SSHd
  • No additional software required on client boxes
  • Modules can be written in ANY language
  • Awesome API for creating very powerful distributed scripts
  • Be usable as non-root
  • The easiest config management system to use, ever.

Get Involved

Branch Info

  • Releases are named after Van Halen songs.
  • The devel branch corresponds to the release actively under development.
  • Various release-X.Y branches exist for previous releases
  • We'd love to have your contributions, read "CONTRIBUTING.md" for process notes.

Author

Michael DeHaan -- michael.dehaan@gmail.com

http://michaeldehaan.net