Set an explicit inventory file - Kubespray

0 votes
I'm trying to create a Kubernetes cluster using Kubespray.

I have created an explicit file and would like my ansible to use that file as my inventory file instead of the default /etc/ansible/host one.

How do I change the path to my inventory file?
Jan 23, 2019 in Ansible by Isha
925 views

1 answer to this question.

0 votes

Hi @Isha,

Go to /etc/ansible/ansible.cfg

In the default section change its path to whatever you need

answered Jan 23, 2019 by Yesha

Related Questions In Ansible

0 votes
1 answer

What is the difference between the host file and an inventory file in ansible?

Actually both are same. hosts file is ...READ MORE

answered Feb 12, 2019 in Ansible by Amith
• 140 points
7,945 views
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
1,993 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, 2019 in Ansible by Akansha
1,079 views
0 votes
1 answer
+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,430 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,350 points

reshown Apr 12, 2019 by Kalgi 7,052 views
0 votes
1 answer

Where to find inventory file? - Kubespray

By default its located in /etc/ansible/hosts. You can ...READ MORE

answered Jan 23, 2019 in Ansible by Noor
859 views
0 votes
1 answer

Encrypt an encrypted file - Ansible Vault

Hey @Fez, This is one of the way ...READ MORE

answered Jan 29, 2019 in Ansible by Cerci
647 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