AWX

Hey ,

do we have to put variable in hosts configuration for connecting host with awx ui using ssh ?
ansible_host: 172.16.145.49
ansible_connection: local
//ansible_python_interpreter: ‘{{ ansible_playbook_python }}’
ansible_ssh_pass: Suchi@123
ansible_sudo_pass: Suchi@123
ansible_connection: ssh
ansible_port: 22
ansible_user: suchi
ansible_become: true

this is my variables but it gives error : “msg”: “Failed to connect to the host via ssh: ssh: connect to host 172.19.0.3 port 22: Connection timed out”,
but when i remove ansible_ssh_pass, ansible_ssh_connection , ssudo_pass

ping playbook working properly but playbook which install package is not working

Are you setting up an inventory with the hosts to run this job template with? you may need to create a machine credential with the ssh key, and attach the credential to the job template.

here is the official docs for setting up an inventory https://docs.ansible.com/automation-controller/latest/html/userguide/inventories.html

Hope that helps

AWX Team