Where do I get Ansible Tower hostname

0 votes
Is there a way to get Ansible tower's hostname?
Feb 1, 2019 in Ansible by Neel
1,233 views

1 answer to this question.

0 votes

Hey @Neel, you can fetch that information from "execution_node" variable. It won't show you in facts. Assuming if you are running it from Tower, you can debug this variable to get that information.

Or you can set gather_facts true and get the hostname variable from it. 

answered Feb 1, 2019 by Anisha

Related Questions In Ansible

0 votes
1 answer

Where do I get ansible RDS Instance?

Hey @Neha, In the same dir as ...READ MORE

answered Feb 4, 2019 in Ansible by Anushri
825 views
0 votes
1 answer

How do I get an ENV variable and store it into a local variable - Ansible

Hey @Ninja, that is possible. What you ...READ MORE

answered Jan 24, 2019 in Ansible by Thomas
2,596 views
0 votes
1 answer

How do i get Ansible predefined variables?

There three types of variables variables gathered from ...READ MORE

answered Jan 24, 2019 in Ansible by Parth
1,596 views
0 votes
1 answer

How do I get a list of all Ansible variables?

Ansible by default gathers facts about machines ...READ MORE

answered Jan 31, 2019 in Ansible by Mahir
6,109 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
2 answers

How do i install Ansible using virtualenv

Adding to @Mohit's answer,  For CentOS and RHEL: sudo ...READ MORE

answered Jan 10, 2019 in Ansible by Dikinson
5,583 views
0 votes
1 answer

How do I make my_dir available for all hosts? - Ansible

Hey @Kiara,  f you want to make my_dir available to ...READ MORE

answered Feb 1, 2019 in Ansible by Anisha
1,119 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