Hi,
I have recently started using Ansible tower for REST based API support for ansible. In order to manage new hosts in ansible we need to edit /etc/ansible/hosts file, add new host to it, and setup SSH connection with this host by copying the ssh-keygen file to this new host.
My question is :
- We have Inventory in ansible tower as well. If i add my host to Ansible tower do i still need to add this host entry to my etc/ansible/hosts file ?
- If adding the host to tower is sufficient, how can i run job on the fly on this new host. Will Tower setup SSH on its own or i still have to setup SSH for newly added host ? Is there a way to automate this through REST API ?
I am new to linux and i have never worked on SSH before. Any help would be useful ? Please let me know if you need any further details.
Thanks
Shruti