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 in Ansible by Isha
25 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hi @Isha,

Go to /etc/ansible/ansible.cfg

In the default section change its path to whatever you need

answered Jan 23 by Yesha

Related Questions In Ansible

0 votes
1 answer
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
62 views
0 votes
1 answer
0 votes
1 answer

Set AWS credentials in boto config file

Go to your boto config file, and ...READ MORE

answered Mar 26 in Ansible by Raymond
57 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
681 views
+3 votes
1 answer
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 in Ansible by Noor
56 views
0 votes
1 answer

Encrypt an encrypted file - Ansible Vault

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

answered Jan 29 in Ansible by Cerci
47 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.