Cloudkul Support

How to add IP addresses in ansible host setup ?

To setup ansible hosts i.e. adding the list of IP addresses that ansibile is going to access, we define a group under which IP addresses are mentioned.

Open host configuration file:

nano /etc/ansible/hosts

Add:

[group_name]
host1 ansible_ssh_host=192.168.1.123
host2 ansible_ssh_host=192.168.1.124
host3 ansible_ssh_host=192.168.1.125

 

Is this article is helpful?

People like and 1 people dislike.

If result is not found or irrelevant, Please contact us.

Submit your request

Start a Project




    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home