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 in Ansible by Akshay
64 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 by Noor

Related Questions In Ansible

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 in Ansible by Naina
159 views
0 votes
1 answer

Ansible playbook to wget a file

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

answered Jan 16 in Ansible by Vaishu
1,116 views
0 votes
1 answer

Access Inventory file - Ansible

You can just use {{ ansible_ssh_host }} Inventory: [my_hosts] my_host ansible_ssh_host=127.0.0.1 ...READ MORE

answered Jan 24 in Ansible by Akansha
107 views
0 votes
1 answer

where to install Ansible galaxy?

Hey Gayatri, This can be done with ...READ MORE

answered Jan 28 in Ansible by Kavya
77 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
2,051 views
+3 votes
1 answer
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 in Ansible by Yesha
45 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
2,447 views