Ansible works, a single playbook "helloworld.yml" works via cmd line. Yet in tower it doesn't. My hosts file is very simple (just 1 IP).
ansible]$ cat hosts
# This is the default ansible 'hosts' file.
#
# It should live in /etc/ansible/hosts
#
# - Comments begin with the '#' character
# - Blank lines are ignored
# - Groups of hosts are delimited by [header] elements
# - You can enter hostnames or ip addresses
# - A hostname/ip can be a member of multiple groups
# Ex 1: Ungrouped hosts, specify before any group headers.
## 192.168.100.1
10.244.193.34
# Ex 2: A collection of hosts belonging to the 'webservers' group
## [webservers]
## 192.168.1.100
## 192.168.1.110
# If you have multiple hosts following a pattern you can specify
# them like this:
# Ex 3: A collection of database servers in the 'dbservers' group
## [dbservers]
##
## 10.25.1.56
## 10.25.1.57
# Here's another example of host ranges, this time there are no
# leading 0s:
============================================================
cat helloworld.yml
---
- name: Hello World!
hosts: all
tasks:
- name: Hello World!
shell: echo "Hi! Tower is working!"
===========================================================
ansible-playbook helloworld.yml -f 10
PLAY [Hello World!] ************************************************************
TASK [Gathering Facts] *********************************************************
ok: [10.244.193.34]
TASK [Hello World!] ************************************************************
changed: [10.244.193.34]
PLAY RECAP *********************************************************************
10.244.193.34 : ok=2 changed=1 unreachable=0 failed=0
[cyc@cicdcyc-frobes-1-00 helloworld]$
====================================================================
but in tower it fails...
PLAY [Hello World!] ************************************************************
11:28:18
4
TASK [Gathering Facts] *********************************************************
11:28:18
5
fatal: [10.244.193.34]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '10.244.193.34' (ECDSA) to the list of known hosts.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n", "unreachable": true}
7
PLAY RECAP *********************************************************************
11:28:18
8
10.244.193.34 : ok=0 changed=0 unreachable=1 failed=0