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
137 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 6 days ago in Ansible by MD
• 56,480 points
26 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
771 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
6,187 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
8,368 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,950 points

reshown Apr 12, 2019 by Kalgi 2,527 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
225 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
6,141 views