[ansible-project] error in group vars that I can't solve

2015-04-09 Thread Chanaka Samarajeewa
Hello, I'm getting the following error when running my task. For some reason Ansible is complaining about = characters, but it is ok with = characters in the same file. I tried single quotes and double quotes around the characters but it causes other errors. Files and error message are as

[ansible-project] register variable

2015-04-09 Thread Nico K.
Hi, I'm trying to register the output of a command which returns json. When I do this as a standalone task (not role) it works fine, for example: - name: x hosts: localhost tasks: - shell: aws iam list-server-certificates register: y - set_fact: test: {{ y.stdout }}

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-09 Thread P
# git clone git://github.com/ansible/ansible.git --recursive Initialized empty Git repository in /tmp/a/ansible/.git/ remote: Counting objects: 78344, done. remote: Compressing objects: 100% (42/42), done. remote: Total 78344 (delta 12), reused 0 (delta 0), pack-reused 78300 Receiving objects:

[ansible-project] Re: register variable

2015-04-09 Thread Nico K.
The fix is to change: set_fact: x=y to set_fact: x: y No idea why.. but it works -- 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

Re: [ansible-project] Re: Connection refused

2015-04-09 Thread Jonathan Anderson
Actually I'm trying to connect to a Windows machine so I can't use ssh. In that case are the contents of my windows.yml file correct for connecting to a windows machine. I've tried using port 5986 and 5985 (using a cert and ssl) but neither works. windows.yml file contains...

Re: [ansible-project] Re: Failing to connect to Windows clients with 1.9.0 -- No credentials cache file found

2015-04-09 Thread Chris Church
A fix has been merged via https://github.com/ansible/ansible/pull/10664 (similar to Jon's changes in https://github.com/ansible/ansible/pull/10644) and pending docs changes in https://github.com/ansible/ansible/issues/10665. The winrm connection will only try kerberos if it is installed and the

Re: [ansible-project] Using ansible_ssh_pass variable set by ask_pass in a playbook?

2015-04-09 Thread Brian Coca
passwords are not something we expose to the plays, I'm not sure we would want to as this can open concerns, specially with 3rd party roles you don't audit for changes (new task publishes password in irc ). -- Brian Coca -- You received this message because you are subscribed to the

Re: [ansible-project] AnsibleUndefinedVariable

2015-04-09 Thread Brian Coca
I'm guessing you are not gathering facts for the others -- Brian Coca -- 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

Re: [ansible-project] AnsibleUndefinedVariable

2015-04-09 Thread Mike Michel
how can i do it while limiting to one host? Am Donnerstag, 9. April 2015 18:21:56 UTC+2 schrieb Brian Coca: I'm guessing you are not gathering facts for the others -- Brian Coca -- You received this message because you are subscribed to the Google Groups Ansible Project group. To

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-09 Thread Brian Coca
now it looks like your yaml library is not in sync with itself -- Brian Coca -- 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

[ansible-project] Re: why isn't stdout returned on this most basic of commands?

2015-04-09 Thread Andy Ingham
Unfortunately, this problem has returned (as of version 1.8.4 ?): FAILS: ansible HOSTXYZ -m shell -a 'cat /var/log/boot.log' -K --sudo sudo password: HOSTXYZ | success | rc=0 NO OUTPUT HERE, WHERE THERE SHOULD BE (DUE TO SPECIAL CHARACTERS AT THE BEGINNING OF THAT FILE?)

[ansible-project] Register variable in a loop can't access through with_items

2015-04-09 Thread Michael Mallett
Hi, I'm an ansible noob, and I'm following this tutorial to use the rax module to spin up and configure rackspace servers http://nicholaskuechler.com/2015/01/09/build-rackspace-cloud-servers-ansible-virtualenv/#comment-550108 It's great but it's not dynamic, as you can seemingly only add one

Re: [ansible-project] Register variable in a loop can't access through with_items

2015-04-09 Thread Brian Coca
try using debug module to see the actual structure of the returned data: debug: var=rax -- Brian Coca -- 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

[ansible-project] AnsibleUndefinedVariable

2015-04-09 Thread Mike Michel
hi, im running a master/slave cluster where i want to add another slave via ansible so i am limiting the play to the new slave ansible-playbook -vvv -l mesos_slaves[3] -i hosts-prod.yml playbook.yml -u xxx -k -K Add a point there comes a template which needs the ips of the other slaves {%

[ansible-project] include with vars not working as expected

2015-04-09 Thread Christian Auth
Hey, i am working on a infrastructure that is completely managed by ansible (great tool btw). we are currently in the process of adding different environments (production, prelive ...) and we hit a problem that i need help with to understand whats going wrong here. we have a group_vars file

Re: [ansible-project] AnsibleUndefinedVariable

2015-04-09 Thread Brian Coca
A couple of ways, the simplest would be 2 plays, the first just gathers facts on all hosts, the 2nd is limited to a single host, facts are kept in memory cache by default. Another way is just setting up persistent fact caching. -- Brian Coca -- You received this message because you are

[ansible-project] Command asking for password

2015-04-09 Thread imlaabid
Hi, I'm trying to do a simple pg_dump on my playbook, but the command asks for the password ( which i can't see when ansible runs ) . How is this case handled by ansible ? when a script asks for user input/confirmation? . Thanks -- You received this message because you are subscribed to the

Re: [ansible-project] Re: Ansible 1.9.1 rc1 is now available for testing

2015-04-09 Thread Ivaylo Bratoev
Found a 1.9 regression that it would be great if it can be fixed for 1.9.1: https://github.com/ansible/ansible/issues/10661 On Tuesday, April 7, 2015 at 10:53:31 PM UTC+3, Matt Martz wrote: Where did you grab the tarball from? GitHub? If so then that would be expected since the module

Re: [ansible-project] error in group vars that I can't solve

2015-04-09 Thread Brian Coca
Have you tried quoting it? is a reserved Yaml character (signifies multiline input) so it requires quoting, is not a reserved character. comparison: '=' -- Brian Coca -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from

Re: [ansible-project] Create variable as dict using jinja2 within playbook

2015-04-09 Thread Steve Jacobs
Why is it possible to do with an array though? - hosts: all connection: local gather_facts: false tasks: - set_fact: myvar: | {% set comma = joiner(,) %} [ {% for item in ['honey', 'bunch'] -%} {{ comma() }}monkey {%- endfor %}] -

Re: [ansible-project] Create variable as dict using jinja2 within playbook

2015-04-09 Thread Steve Jacobs
I realize this is an old thread, but why does this not work? It works as expected for arrays... For instance see this blog post: http://adamj.eu/tech/2014/10/02/merging-groups-and-hostvars-in-ansible-variables/ That works just fine, but if you try to modify this to output an array of

Re: [ansible-project] Re: register variable

2015-04-09 Thread Brian Coca
different parsers, the x=y is a custom ansible module parameter parser, x: y is just yaml. -- Brian Coca -- 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

Re: [ansible-project] Command asking for password

2015-04-09 Thread Brian Coca
ansible is a batch system, it avoids dealing with prompts. Normally a module will supply any information needed to avoid prompts. -- Brian Coca -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this group and stop

[ansible-project] Re: replace module help

2015-04-09 Thread Edgars
You should use mount module for this http://docs.ansible.com/mount_module.html Edgars trešdiena, 2015. gada 8. aprīlis 16:48:32 UTC+2, Roy rakstīja: Hi I am new to Ansible and writing my first playbook I want to update /etc/fstab UUID=f2550ab4-36cb-4ff0-8afa-9e7839f7ce9f /

[ansible-project] trouble with ansible and sudo remote command

2015-04-09 Thread Kathy Allen
Hi. I hope someone can help me out here. In one of my plays, I need to have a user be able to run an ansible task which runs a command on a remote host with sudo. On the remote host, the user is allowed to run this command with root privs, per the sudoers rules. But it's not working, and it