Playbook to get my current IP - Ansible and AWS

0 votes
How do I write a playbook that gives me my current IP?
Mar 24, 2019 in Ansible by Komal
1,321 views

1 answer to this question.

0 votes

Hey Komal, that's pretty simple. Try this:

- name: Get my current IP address
  uri: 
    url: http://checkip.amazonaws.com/ 
    return_content: yes 
  register: my_ip 

answered Mar 24, 2019 by Aarohi
Yes, it works fine. Thank you @Aarohi

Related Questions In Ansible

0 votes
1 answer

Playbook to get all the container's ARN's in my AWS ECS cluster

Hey @haseeb, you could try something like ...READ MORE

answered Apr 9, 2019 in Ansible by Anshul
974 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do i set multiple authorized keys to my ansible playbook?

Try this: - name: Set up multiple authorized ...READ MORE

answered Feb 12, 2019 in Ansible by John
1,449 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+2 votes
1 answer
0 votes
1 answer

Ansible with AWS Parameter store

Hey @Dipti, have a look at the ...READ MORE

answered Mar 24, 2019 in Ansible by Rhea
966 views
0 votes
1 answer

Create Network Load Balancer on AWS using Ansible

Hey @Neha, you can create NLB using ...READ MORE

answered Mar 24, 2019 in Ansible by Arc
1,220 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP