[ansible-project] Problems with lookups in new versions 1.6.7+

2014-07-29 Thread micafer
Currently with the new ansible versions 1.6.7+ I have problems in some of my playbooks I get this error: A variable inserted a new parameter into the module args. Be sure to quote variables if they contain equal signs (for example: "{{var}}"). Using a playbook as simple as this one: - hosts:

Re: [ansible-project] Re: Problems with permissions accesing files with sudo

2014-07-02 Thread micafer
My question is how can I copy a file from the Ansible node to the configured nodes when the file is only accessible by the root user. Using the copy module directly does not work, so now I have to make some tricky tasks like that: - hosts: all sudo: true tasks: - local_action: shell cp

[ansible-project] Re: Problems with permissions accesing files with sudo

2014-07-01 Thread micafer
Now I have seen an issue in the Ansible github with the same problem: https://github.com/ansible/ansible/issues/6948 It provides a patch to solve the error, but it only changes the error message. The original error was: TASK: [copy src=/tmp/root.txt dest=/tmp/pr.txt] **

[ansible-project] Problems with permissions accesing files with sudo

2014-07-01 Thread micafer
Hi, I'm having problems with permissions accessing files. I have this simple test playbook: - hosts: all sudo: true tasks: - copy: src=/tmp/root.txt dest=/tmp/pr.txt The file "/tmp/root.txt" is owned by the root user with permissions 600. If I'm using "sudo", why the playbook cannot acces

Re: [ansible-project] vars_files not importing existing file

2014-06-25 Thread micafer
Hi, The format I show in the example is the output obtained by the dump function of the PyYAML library, so I suppose that is a correct YAML format. Anyway I tested with these formats and all of them get the same result. With versions 1.5.4, 1.5.5, 1.6.0 and 1.6.1 it does not work and with versio

[ansible-project] vars_files not importing existing file

2014-06-24 Thread micafer
Hi, I create an issue in the ansible github and Michael DeHaan recomend me to ask here for help. All the information is in this issue: https://github.com/ansible/ansible/issues/7901 The summary is: In Ubuntu 12.04. versions 1.5.4, 1.5.5, 1.6.0 and 1.6.1, a "vars_files" section defined like th