jenkins@ip-172-31-35-124:~/jobs/JobName/workspace$ bin/devtools/ansible/ec2.py --list --refresh-cache
...
"tag_ec2id_test10": [
"172.31.31.72",
"172.31.45.13"
"tag_ec2type_mysql": [
"172.31.25.13"
],
"tag_ec2type_apache": [
"172.31.31.72"
...
- name: Gather ec2 facts
ec2_facts:
when: provider == "ec2"
- name: Add instance to iaas-provider-agnostic type group
add_host: hostname={{ inventory_hostname }} groups="{{ ec2_tag_ec2type }}"
when: provider == "ec2"
"ec2_tag_ec2id": "test10", "ec2_tag_ec2id_and_ec2type": "test10_apache2", "ec2_tag_ec2type": "apache2",
...
"group_names": [ "***************************", "***************************", "i-********", "key_*******", "security_group_***************************", "security_group_***************************", "security_group_***************************", "***************************", "***************************", "tag_ec2id_and_ec2type_test10_apache2", "tag_ec2id_test10", "tag_ec2type_apache2", "tag_provisioned_True", "type_m1_medium", "us-west-2", "us-west-2b" ],
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
TASK: [iaas_gather_multi | Add instance to id group] **************************
<172.31.31.72> ESTABLISH CONNECTION FOR USER: root
creating host via 'add_host': hostname=172.31.31.72
added host to group via add_host module: test10
ok: [172.31.31.72] => {"item": "", "new_groups": ["test10"], "new_host": "172.31.31.72"}
TASK: [iaas_gather_multi | Add instance to type group] ************************
<172.31.31.72> ESTABLISH CONNECTION FOR USER: root
creating host via 'add_host': hostname=172.31.31.72
added host to group via add_host module: webnode
ok: [172.31.31.72] => {"item": "", "new_groups": ["webnode"], "new_host": "172.31.31.72"}
TASK: [iaas_gather_multi | Add instance to id_type group] *********************
<172.31.31.72> ESTABLISH CONNECTION FOR USER: root
creating host via 'add_host': hostname=172.31.31.72
added host to group via add_host module: test10_webnode
ok: [172.31.31.72] => {"item": "", "new_groups": ["test10_webnode"], "new_host": "172.31.31.72"}
TASK: [iaas_gather_multi | Add host to provisioning status group] *************
<172.31.31.72> ESTABLISH CONNECTION FOR USER: root
creating host via 'add_host': hostname=172.31.31.72
added host to group via add_host module: host_provisioned_True
ok: [172.31.31.72] => {"item": "", "new_groups": ["host_provisioned_True"], "new_host": "172.31.31.72"}
TASK: [iaas_gather_multi | debug var=group_names] *****************************
<172.31.31.72> ESTABLISH CONNECTION FOR USER: root
ok: [172.31.31.72] => {
"group_names": [
"***********",
"***********",
"***********",
"***********",
"***********",
"***********",
"***********",
"***********",
"***********",
"tag_ec2id_and_ec2type_test10_apache2",
"tag_ec2id_test10",
"tag_ec2type_apache2",
"***********",
"type_m1_medium",
"us-west-2",
"us-west-2b"
],
"item": ""
}
<172.31.45.13> ESTABLISH CONNECTION FOR USER: root
ok: [172.31.45.13] => {
"group_names": [
"***********",
"***********",
"***********",
"***********",
"***********",
"***********",
"***********",
"tag_ec2id_and_ec2type_test10_mysql",
"tag_ec2id_test10",
"tag_ec2type_mysql",
"***********",
"type_m1_medium",
"us-west-2",
"us-west-2b"
],
"item": ""
}