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 in Ansible by Komal
50 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 by Aarohi
Yes, it works fine. Thank you @Aarohi

Related Questions In Ansible

0 votes
1 answer
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 11 in Ansible by John
48 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
111 views
0 votes
1 answer
0 votes
1 answer

Ansible with AWS Parameter store

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

answered Mar 24 in Ansible by Rhea
82 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 in Ansible by Arc
55 views