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
676 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,440 points
1,741 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,584 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
16,648 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
14,589 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 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,075 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
760 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,039 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