1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Find a file
Dag Wieers 20c1a67711 Abort a play at the start when no hosts matches, or no hosts are remaining
This change makes a distinction between no_hosts_matched and no_hosts_remaining.

In both cases we do not start facts-gathering, or run any tasks.

In the case that there are no more hosts remaining, we abort running tasks and abort the playbook.

I also cleaned up the leftovers from the previous patchsets, as these are no longer required.

This closes #1187.

Example playbook:

```yaml
---
- hosts: emptygroup
  tasks:
  - action: command date
  - action: command false

- hosts: all
  gather_facts: False
  tasks:
  - action: command ls
  - action: command false
  - action: command true

- hosts: all
  tasks:
  - action: command true
  - action: command false

- hosts: all
  tasks:
  - action: command pwd
```
2012-10-02 15:54:24 +02:00
bin If all hosts in a play fail, fail the whole playbook and don't bother printing out every remaining task. 2012-09-30 21:06:00 -04:00
docs/man Complain when modules do not have documentation. 2012-09-30 21:10:07 -04:00
examples Simplify register example 2012-09-29 08:10:45 -04:00
hacking Complain when modules do not have documentation. 2012-09-30 21:10:07 -04:00
lib/ansible Abort a play at the start when no hosts matches, or no hosts are remaining 2012-10-02 15:54:24 +02:00
library 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
packaging distribution packaging should install all manpages 2012-09-21 11:15:40 -06:00
test Allow non-string types in with_items variables 2012-10-01 17:07:51 +02:00
.gitignore Ignoring PyCharm/IntelliJ and Mac OS X stuff 2012-09-30 11:08:41 +02:00
CHANGELOG.md organize changelog 2012-09-30 21:33:38 -04:00
CONTRIBUTING.md update contributing file 2012-09-17 22:55:06 -04:00
COPYING license file should be in source tree 2012-03-15 20:24:22 -04:00
Makefile documentation: man template: support empty options; add Version to Makefile 2012-09-30 13:33:21 +02:00
MANIFEST.in Add some docs/examples 2012-08-14 13:05:44 -04:00
README.md Update website link 2012-09-24 21:56:37 -04:00
RELEASES.txt Release version bump 2012-09-06 18:56:38 -04:00
setup.py Add package to setup.py 2012-09-07 21:03:59 -04:00
VERSION Release version bump 2012-09-06 18:56:38 -04:00

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