How to use bastion host with ansible Tower
Channel: Heikki Koivisto
Date: 2019-07-17

This is how to set up and use jump host with ansible awx and tower setups. 
Support channel: https://www.youtube.com/c/HeikkiKoivisto/?sub_confirmation=1
Commands:

Creating Ansible service account on Bastion host
On AWX host:
Create ssh-key for ansible-service account or use existing
ssh-keygen -t rsa


On bastion target host:
Create user:
sudo su
adduser ansible-service

go to ansible-service account home folder
create .ssh - folder

edit visudo:
ansible-service ALL=(ALL) NOPASSWD:ALL

Copy SSH key to:
/home/ansible-service/.ssh/authorized_keys

Set appropriate permissions: 
chown ansible-service:ansible-service .ssh/authorized_keys
chmod 0644 .ssh/authorized_keys


AWX settings:
ansible_user: username
ansible_connection: ssh
ansible_ssh_common_args: '-o ProxyCommand="ssh -o StrictHostKeyChecking=no -W %h:%p -q username@ssh-bastion-host-ip"'