|
$ ansible-playbook ec2_auto_scaling_launch_gen_with_ansible.yml -vvvv |
|
Using /etc/ansible/ansible.cfg as config file |
|
[WARNING]: Host file not found: /etc/ansible/hosts |
|
|
|
[WARNING]: provided hosts list is empty, only localhost is available |
|
|
|
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc |
|
_________________________ ______________________________ |
|
< PLAYBOOK: ec2_auto_scaling_launch_gen_with_ansible.yml > |
|
-------------------------------------------------------- |
|
\ ^__^ |
|
\ (oo)\_______ |
|
(__)\ )\/\ |
|
||----w | |
|
|| || |
|
|
|
1 plays in ec2_auto_scaling_launch_gen_with_ansible.yml |
|
__________________ |
|
< PLAY [localhost] > |
|
------------------ |
|
\ ^__^ |
|
\ (oo)\_______ |
|
(__)\ )\/\ |
|
||----w | |
|
|| || |
|
|
|
______________ |
|
< TASK [setup] > |
|
-------------- |
|
\ ^__^ |
|
\ (oo)\_______ |
|
(__)\ )\/\ |
|
||----w | |
|
|| || |
|
|
|
... |
|
ok: [localhost] |
|
_______________ |
|
< TASK [ec2_lc] > |
|
--------------- |
|
\ ^__^ |
|
\ (oo)\_______ |
|
(__)\ )\/\ |
|
||----w | |
|
|| || |
|
|
|
... |
|
ok: [localhost] => { |
|
"arn": "arn:aws:autoscaling:us-east-1:<<MY_USER_ID>>:launchConfiguration:<<some_random_hash>>:launchConfigurationName/configuration-name-to-put-generated-v0.0.1", |
|
"changed": false, |
|
"created_time": "2016-12-09 07:22:18.035000", |
|
"image_id": "ami-id-string", |
|
"instance_type": "c3.xlarge", |
|
"invocation": { |
|
"module_args": { |
|
"assign_public_ip": null, |
|
"associate_public_ip_address": null, |
|
"aws_access_key": null, |
|
"aws_secret_key": null, |
|
"classic_link_vpc_id": "vpc-id-string", |
|
"classic_link_vpc_security_groups": [ |
|
"sg-string-vpc-specific-abcdef", |
|
"sg-string-vpc-specific-ghijkl" |
|
], |
|
"ebs_optimized": false, |
|
"ec2_url": null, |
|
"image_id": "ami-id-string", |
|
"instance_monitoring": false, |
|
"instance_profile_name": "my_kickass_iam_role", |
|
"instance_type": "c3.xlarge", |
|
"kernel_id": null, |
|
"key_name": null, |
|
"name": "configuration-name-to-put-generated-v0.0.1", |
|
"profile": null, |
|
"ramdisk_id": null, |
|
"region": null, |
|
"security_groups": [ |
|
"my_sg_001", |
|
"my_sg_010", |
|
"my_sg_100" |
|
], |
|
"security_token": null, |
|
"spot_price": null, |
|
"state": "present", |
|
"user_data": "long string in escaped form...of user_data.sh below" |
|
"validate_certs": true, |
|
"volumes": null |
|
}, |
|
"module_name": "ec2_lc" |
|
}, |
|
... |
|
] |
|
} |
|
____________ |
|
< PLAY RECAP > |
|
------------ |
|
\ ^__^ |
|
\ (oo)\_______ |
|
(__)\ )\/\ |
|
||----w | |
|
|| || |
|
|
|
localhost : ok=2 changed=0 unreachable=0 failed=0 |