Setting Ansible Inventory
Ansible allows us to manage multiple nodes or hosts at the same time. The default location for the inventory resides in /etc/ansible/hosts. In this file, we can define groups and sub-groups.
Example:
[docker_group]
docker_host ansible_host=your-managed-host-ip ansible_user=ansadmin ansible_ssh_private_key_file=/home/ansadmin/.ssh/ansible ansible_python_interpreter=/usr/bin/python3
ansible_1 ansible_connection=local
Comments
Post a Comment