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.
Hey @Kiran, try something like this: - name: ...READ MORE
Hi@akhtar, Ansible registers module used to capture/store the ...READ MORE
Hi@akhtar, You need to use the setup module to ...READ MORE
Hi@akhtar, To run any playbook in the local ...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, You can find one argument in the ...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.