Ansible configuration ansible.cfg env variables - Ansible tutorial Video 3

preview_player
Показать описание

Here is the corrected version of the YouTube captions:

This is where we ended the last part, and this is going to help us talk about Ansible configuration. So, I will do another one: `ansible --list-hosts`. When we do this, we are told that our inventory is empty. If you want to list the hosts for the inventory that we have here, we have to define it explicitly. We will have to tell Ansible to use this as an inventory.

And you can see it's just a small file without anything.

Right, and you're going to see how we can disable an ansible configuration file.

Please consider supporting my channel:
Order services:

Donate:

****Support My Channel****

I will greatly appreciate your support.

SOCIAL :
Рекомендации по теме
Комментарии
Автор

i did the inventory=inventory in the ansible.cfg
howeever, still cannot directly use "ansible all --list-hosts" to display the hosts

iyanlou
Автор

Great news! You Can Now Hire Me on Fiverr For Linux Server and Web/Cloud support ( Ricky W on Fiverr)
Links to my Fiverr gigs:

BizanosaTutorials