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
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| cloudformation | Loading commit data... | |
| digital_ocean | Loading commit data... | |
| digital_ocean_domain | Loading commit data... | |
| digital_ocean_sshkey | Loading commit data... | |
| docker | Loading commit data... | |
| docker_image | Loading commit data... | |
| ec2 | Loading commit data... | |
| ec2_ami | Loading commit data... | |
| ec2_ami_search | Loading commit data... | |
| ec2_asg | Loading commit data... | |
| ec2_eip | Loading commit data... | |
| ec2_elb | Loading commit data... | |
| ec2_elb_lb | Loading commit data... | |
| ec2_facts | Loading commit data... | |
| ec2_group | Loading commit data... | |
| ec2_key | Loading commit data... | |
| ec2_lc | Loading commit data... | |
| ec2_metric_alarm | Loading commit data... | |
| ec2_scaling_policy | Loading commit data... | |
| ec2_snapshot | Loading commit data... | |
| ec2_tag | Loading commit data... | |
| ec2_vol | Loading commit data... | |
| ec2_vpc | Loading commit data... | |
| elasticache | Loading commit data... | |
| gc_storage | Loading commit data... | |
| gce | Loading commit data... | |
| gce_lb | Loading commit data... | |
| gce_net | Loading commit data... | |
| gce_pd | Loading commit data... | |
| glance_image | Loading commit data... | |
| keystone_user | Loading commit data... | |
| linode | Loading commit data... | |
| nova_compute | Loading commit data... | |
| nova_keypair | Loading commit data... | |
| ovirt | Loading commit data... | |
| quantum_floating_ip | Loading commit data... | |
| quantum_floating_ip_associate | Loading commit data... | |
| quantum_network | Loading commit data... | |
| quantum_router | Loading commit data... | |
| quantum_router_gateway | Loading commit data... | |
| quantum_router_interface | Loading commit data... | |
| quantum_subnet | Loading commit data... | |
| rax | Loading commit data... | |
| rax_clb | Loading commit data... | |
| rax_clb_nodes | Loading commit data... | |
| rax_dns | Loading commit data... | |
| rax_dns_record | Loading commit data... | |
| rax_facts | Loading commit data... | |
| rax_files | Loading commit data... | |
| rax_files_objects | Loading commit data... | |
| rax_identity | Loading commit data... | |
| rax_keypair | Loading commit data... | |
| rax_network | Loading commit data... | |
| rax_queue | Loading commit data... | |
| rds | Loading commit data... | |
| rds_param_group | Loading commit data... | |
| rds_subnet_group | Loading commit data... | |
| route53 | Loading commit data... | |
| s3 | Loading commit data... | |
| virt | Loading commit data... |