79083/how-to-list-down-all-the-hosts-in-ansible
Hi Guys,
I am new in Ansible. I want to list down all the hosts. How can I do that?
Hi@akhtar,
You can use the option --list-hosts. It will show all the host IPs from your inventory file. You can use the below-given command.
$ ansible all --list-hosts
I hope this will help you.
Ansible by default gathers facts about machines ...READ MORE
Hey @Kiara, f you want to make my_dir available to ...READ MORE
This can work out for you: - name: ...READ MORE
Hey Ayaan, you could probably use this ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Hi@akhtar, Ansible role is a part of ansible-galaxy. ...READ MORE
Hi@akhtar, To configure your inventory dynamically you need ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.