Where to find inventory file - Kubespray

0 votes
I'm trying to provision kubernetes cluster using kubespray and one of the steps require me to add my hosts in the inventory file. But i dont know where to find the inventory file.
Jan 23, 2019 in Ansible by Akshay
884 views

1 answer to this question.

0 votes

By default its located in /etc/ansible/hosts.

You can find your inventory file location at /etc/ansible/ansible.cgf

If you have explicitly created a file and want to use that as an inventory file, that path can also be set in the ansible.cfg file.

answered Jan 23, 2019 by Noor

Related Questions In Ansible

0 votes
1 answer

How to set dynamic host inventory file for docker in Ansible?

Hi@akhtar, In a configuration especially a container setup such ...READ MORE

answered Sep 20, 2020 in Ansible by MD
• 95,460 points
2,037 views
0 votes
1 answer

Error saying "Failed to find required executable npm in paths"

Hey @Thomas,  Seems like those extra paths have ...READ MORE

answered Jan 10, 2019 in Ansible by Naina
2,937 views
0 votes
1 answer

Ansible playbook to wget a file

Hey @Celia, one recommendation, try not using ...READ MORE

answered Jan 16, 2019 in Ansible by Vaishu
17,721 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,578 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,064 views
0 votes
1 answer

Set an explicit inventory file - Kubespray

Hi @Isha, Go to /etc/ansible/ansible.cfg In the default section ...READ MORE

answered Jan 23, 2019 in Ansible by Yesha
951 views
+1 vote
1 answer

Is it possible to append a large amount of text to a file using Ansible?

Here is concept which you can follow. blockinfile is ...READ MORE

answered Jul 30, 2018 in Ansible by Atul
• 10,240 points
14,747 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