Ansible tower new host ssh connection

43 views
Skip to first unread message

Shruti Sharda

unread,
Apr 13, 2017, 12:45:35 PM4/13/17
to Ansible Project
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 : 
1. 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 ? 
2. 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

Matt Martz

unread,
Apr 13, 2017, 12:48:05 PM4/13/17
to ansible...@googlegroups.com
For tower questions, please utilize https://access.redhat.com/products/ansible-tower-red-hat

This mailing list is for the open source ansible project.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9280d203-be56-45de-8e1e-c87df46ad09f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages