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?
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
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.
You can find one argument in the ...READ MORE
You need to use the setup module to ...READ MORE
You can use the mount module in ...READ MORE
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
You need to use the copy module ...READ MORE
Ansible has a module named service. This ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.