gather facts from multiple groups?

ok I'm stealing my thread back :slight_smile:

I'm now running ansible 1.3 and I still have this problem, I can run
-m setup on each of the host groups, and I can run it on the new
server with the -u root -k, but I can run it from a playbook like
this:

- hosts: CL200
  sudo: False
  gather_facts: True

- hosts: CL000
  sudo: False
  gather_facts: True

- hosts: cl504.domainname.net
  sudo: True
  gather_facts: True

sheepchase-2:tasks jmarcus$ ansible-playbook citrusleaf.yml -k -v -v -v -v
SSH password:

Sorry, long post, what is the problem specifically?

It looks like you control-C’d a yum execution.

Authenticated failed is probably a legitimate authentication failure, I’m guessing.

Hi,
So I was try to keep my text brief, the point is, without prompt for
an auth I can gather facts, using keys on the two groups of hosts in
the playbook using command line. As soon as I run from the playbook,
which has one user set as root it seems unable to gather facts. In
the past this seemed to work without issue. Is this more helpful? I
just to be sure I'm being clear, in that if I just run
ansible CL000 -a "ls"
I won't be prompted for a password and it will return whats in my home dir.

Does this make sense?

James

Yeah, I saw three plays here and am somewhat confused trying to correlate the output you have shown with the authentication error.

How about just sharing with one has failed so it is easier for me to tell? Note if using ansible it will run using the remote user as you, non-sudo.

So maybe you don’t have sudo access?