81853/how-to-filter-ip-address-of-remote-system-in-ansible
Hi Guys,
I have configured the Ansible controller node in my system. I want to find out the IP address of all managed nodes. How can I do that?
Hi@akhtar,
You can use the filter keyword in your ansible-playbook. It will fetch the data of your manages nodes using setup modules. I have attached one example below.
- name: Gather facts from new server setup: filter: ansible_default_ipv4.address
Hi,
Facts is a task that Ansible runs by default to every node. This task will gather all the information about those nodes. I suggest you just go through the official document of Ansible facts. You will get all the information with an example. I have attached the link below.
https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html
Hi@akhtar, You can find one argument in the ...READ MORE
Hi@akhtar, You need to use the setup module to ...READ MORE
Hi@akhtar, You can use the mount module in ...READ MORE
Hi@akhtar, To install Ansible in your Linux system, ...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, You need to use the copy module ...READ MORE
Hi@akhtar, Ansible has a module named service. This ...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.