No description
Find a file
Maykel Moya ad0ca929b5 ec2_group: Auto create missing groups referenced in rules
Suppose a pair of groups, A and B, depending on each other. One solution
for breaking the circular dependency at playbook level:

    - declare group A without dependencies
    - declare group B depending on A
    - declare group A depending on B

This patch breaks the dependency at module level. Whenever a depended-on
group is missing it's first created. This approach requires only two tasks:

    - declare group A depending on B (group B will be auto created)
    - declare group B depending on A

When creating a group EC2 requires you to pass the group description. In
order to fullfil this, rules now accept the `group_desc` param. Note
that group description can't be changed once the group is created so
it's nice to keep descriptions in sync.

Concrete example:

- ec2_group:
    name: mysql-client
    description: MySQL Client
    rules_egress:
      - proto: tcp
        from_port: 3306
        to_port: 3306
        group_name: mysql-server
        group_desc: MySQL Server

- ec2_group:
    name: mysql-server
    description: MySQL Server
    rules:
      - proto: tcp
        from_port: 3306
        to_port: 3306
        group_name: mysql-client
2014-03-20 17:24:17 +01:00
cloud ec2_group: Auto create missing groups referenced in rules 2014-03-20 17:24:17 +01:00
commands Micro-optimization: replace s.find(x)!=-1 with x in s 2014-03-16 13:10:28 -04:00
database Update comments about redis config. 2014-03-19 18:15:52 -04:00
files fixed issue with directory permissions on copy #6552 2014-03-18 22:29:22 -04:00
internal ansible -> ansibleworks 2014-01-28 20:29:41 -05:00
inventory Make add_host clear the inventory pattern cache, add some more aliases. Fixes #4442. 2013-10-11 16:37:10 -04:00
messaging Typo in rabbitmq_plugin docs 2014-02-28 11:38:11 -06:00
monitoring Fixup shell handling in monit module. 2014-03-12 17:43:31 -04:00
net_infrastructure Version bump, bigip_facts + changelog 2014-03-16 16:48:41 -04:00
network Remove validate_certs parameter from fetch_url calls 2014-03-12 10:31:01 -05:00
notification Add notes about new notification module. 2014-03-19 17:23:30 -04:00
packaging Update cpanm 2014-03-20 08:10:02 -04:00
source_control Fixes #6582 Re-add regex to ignore untracked files that were never tracked 2014-03-19 15:42:40 -04:00
system Add capabilities module. 2014-03-19 17:48:17 -04:00
utilities Execute commands through accelerate with shell when needed 2014-03-18 12:24:13 -05:00
web_infrastructure Add a JIRA control module for Ansible. This version uses fetch_url rather than urllib2. 2014-03-16 17:14:04 +01:00