41942/store-ec2-instance-ip-using-ansible-playbook
Hey @Himanshu, you can use something like this:
- name: Store EC2 instance IPs to provision against add_host: hostname: "{{ item.public_ip }}" groupname: ec2_instance_ips with_items: "{{ ec2_instances.tagged_instances }}"
Let me know if it helps :)
It depends on the path you have given. You can set your path as /etc/ansible/hosts.
Hi@akhtar, Ansible has one module named ec2. This ...READ MORE
Hi@akhtar, To configure your inventory dynamically you need ...READ MORE
Hey @Kiara, your indentation is very wrong. ...READ MORE
Hi@Lakshminarayanan, Yes, you can do that. But after ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
It can work if you try to put ...READ MORE
To solve this problem, I followed advice ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
Hey Ayaan, you could probably use this ...READ MORE
Hey @Yash, you could either use file module ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.