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.

## green.example.com
## blue.example.com
## 192.168.100.1
10.244.193.34

# Ex 2: A collection of hosts belonging to the 'webservers' group

## [webservers]
## alpha.example.org
## beta.example.org
## 192.168.1.100
## 192.168.1.110

# If you have multiple hosts following a pattern you can specify
# them like this:

## www[001:006].example.com

# Ex 3: A collection of database servers in the 'dbservers' group

## [dbservers]
##
## db01.intranet.mydomain.net
## db02.intranet.mydomain.net
## 10.25.1.56
## 10.25.1.57

# Here's another example of host ranges, this time there are no
# leading 0s:

## db-[99:101]-node.example.com

============================================================
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
3
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}
6
7
PLAY RECAP 
*********************************************************************
11:28:18
8
10.244.193.34 : ok=0 changed=0 unreachable=1 failed=0 
9


-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5b15d286-611e-47d4-87e9-ff564b311849%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to