Ansible and Dynamic Amazon EC2 Inventory Management
Error:
[root@ip-0.0.0.0]# /etc/ansible/ec2.py
region name: us-east-1b likely not supported, or AWS is down. connection to region failed.
or
[root@ip-0.0.0.0]# /etc/ansible/ec2.py
region name: ap-south-1 likely not supported, or AWS is down. connection to region failed.
Solution:
ec2.ini
Default value of
regions = all
regions_exclude = us-gov-west-1,cn-north-1,ap-south-1,us-east-1b
One of regions not working which is us-east-1b so just add this in regions_exclude.
regions = all
regions_exclude = us-gov-west-1,cn-north-1,us-east-1b,ap-south-1
OR
regions = add-your-zone.
Run now.
[root@ip-host-name opt]# /etc/ansible/ec2.py
{
"_meta": {
"hostvars": {
"IP": {
"ansible_ssh_host": "IP",
"ec2__in_monitoring_element": false,
"ec2_ami_launch_index": "0",
"ec2_architecture": "x86_64",
"ec2_block_devices": {
"sda1": "vol-84"
},
Happy learning and implementation!!!
D-Link Router Login The default IP is 192.168.0.1 or click here http://192.168.0.1. You can also log into your router using the following link- http://dlinkrouter.local
ReplyDelete