Re: [ansible-project] fetch with_fileglob won't get files

2014-06-20 Thread Makimoto Marakatti
can overwrite them with templates :) thanks On Friday, 20 June 2014 21:55:35 UTC+1, Michael DeHaan wrote: If you don't glob any files, the number of files globbed is 0. As for right files on right boxes, I don't know what you mean by that. On Fri, Jun 20, 2014 at 3:36 AM, Makimoto

Re: [ansible-project] Re: lookup syntax (or client/server install)

2014-06-03 Thread Makimoto Marakatti
a script on master that returns the string that the client needs. Nathan On Friday, 30 May 2014 02:56:20 UTC-7, Makimoto Marakatti wrote: Hi all Let's say I've got a service that I need to install on a machine that we'll call 'client' and for that to work it has to get some parameter from

[ansible-project] lookup syntax (or client/server install)

2014-05-30 Thread Makimoto Marakatti
Hi all Let's say I've got a service that I need to install on a machine that we'll call 'client' and for that to work it has to get some parameter from a box called 'master'. For this to work under ansible it would need to: - install on 'client' - contact 'master' to relay the hostname of

[ansible-project] Re: loops and variables

2014-05-26 Thread Makimoto Marakatti
Just seen this today. Will give it a try soon... Thanks! On Friday, 23 May 2014 21:04:55 UTC+1, Dmitry Makovey wrote: Why not with_nested? as per ams: - name: fetch files from the server fetch: src={{ item }} dest=/backup/{{ item[1] }}/{{ inventory_hostname }}/{{

Re: [ansible-project] loops and variables

2014-05-23 Thread Makimoto Marakatti
Brian: Unfortunately that yields this: changed: [hostA] = {changed: true, dest: /backup/ *0dm-sap:dev-sap:tst-sap:pre-sap:pro-sap/hostA/hostA*/root/.bash_profile, md5sum: bab947e752b87add49020919a078, remote_md5sum: bab947e752b87add49020919a078} I also failed to make this work

Re: [ansible-project] loops and variables

2014-05-23 Thread Makimoto Marakatti
be in lots of groups, so you shouldn't rely on the group_names variable to tell you what you are looping over. For instance, a host could be in a group based on purpose and another based on geography. On Fri, May 23, 2014 at 6:05 AM, Makimoto Marakatti maki...@gmail.comjavascript: wrote

[ansible-project] loops and variables

2014-05-22 Thread Makimoto Marakatti
Hi all Could someone lend me a hand to figure looping over variables? I've got a number of hosts which are grouped in the inventory quite strictly in a rather traditional way: dev-group1 hostA hostB tst-group1 hostC hostD pre-group1 hostE hostF pro-group1 hostG hostH dev-group2

Re: [ansible-project] loops and variables

2014-05-22 Thread Makimoto Marakatti
Thanks for the insightful answer. I'm definitely going to try this and will write here how it goes On Thursday, 22 May 2014 13:04:59 UTC, ams wrote: At 2014-05-22 05:21:35 -0700, maki...@gmail.com javascript: wrote: So I made an attempt to loop over each group: I'm sorry, my earlier

Re: [ansible-project] loops and variables

2014-05-22 Thread Makimoto Marakatti
I can use the with_items construct. If someone has come across something like this before, I would love to hear about it! We have a number of defined groups which we need On Thursday, 22 May 2014 13:21:28 UTC, Makimoto Marakatti wrote: Thanks for the insightful answer. I'm definitely

[ansible-project] help with templating

2014-05-07 Thread Makimoto Marakatti
Hi My latest roadblock is trying to template sudoers. And I can't figure out why this won't work: My playbook calling the role is simple enough: --- - hosts: host1 sudo: True gather_facts: no roles: - { role: myrole, sudoers: true, altsudoers: false } And the tasks/main.yml goes

Re: [ansible-project] help with templating

2014-05-07 Thread Makimoto Marakatti
That was the issue indeed. Thanks! On Wednesday, 7 May 2014 13:22:43 UTC+1, Brian Coca wrote: add full path to visudo in validate, its failing to find it​ -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this group and

[ansible-project] Re: cannot open `/etc/sudoers' for reading

2014-04-10 Thread Makimoto Marakatti
Petr, Adam, you are both right. I't amazing how you don't see the trees because of the forest sometimes. Thanks both. Very much solved. On Wednesday, 9 April 2014 19:57:35 UTC+1, Adam Morris wrote: On Wednesday, April 9, 2014 9:30:38 AM UTC-7, Petr Sukharev wrote: And in theory it is the

[ansible-project] Re: cannot open `/etc/sudoers' for reading

2014-04-09 Thread Makimoto Marakatti
Hi James: This is one of the playbooks I've tried: --- - hosts: clientbox gather_facts: no tasks: - name: cp sudoers from /etc to /tmp command: /bin/cp /etc/sudoers /tmp/cpsudoers - name: change permissions of /tmp/sudoers file: src=/tmp/cpsudoers mode=0777 - name:

Re: [ansible-project] cannot open `/etc/sudoers' for reading

2014-04-08 Thread Makimoto Marakatti
UTC+1, James Cammarata wrote: Do you have selinux enforcing? On Tue, Apr 8, 2014 at 5:13 AM, Makimoto Marakatti maki...@gmail.comjavascript: wrote: Hi all I'm having a weird issue that I can't figure out: I'm making a backup of /etc/sudoers from client boxes, before templating

Re: [ansible-project] Sudo issues... again

2014-03-21 Thread Makimoto Marakatti
??? On Friday, 21 March 2014 08:45:40 UTC, Makimoto Marakatti wrote: Same result unfortunately. :( paramiko is a no go for me though, as I've got a number of boxes behind a jumpbox. And I use ssh config to get direct access to those. I'll try to think out of the box and see what happens

[ansible-project] Sudo issues... again

2014-03-20 Thread Makimoto Marakatti
Hi all I had few sudo issues in the past, and those got solved. Now after updating to latest release (1.5.3) the problem has resurfaced again. My master box has an ansible user. Which connects through ssh certs and has sudo rights to root on each of the remote boxes. I've got 62 boxes that are

Re: [ansible-project] Sudo issues... again

2014-03-20 Thread Makimoto Marakatti
or not, or any other potential issues. -- Matt Martz ma...@sivel.net javascript: On March 20, 2014 at 9:05:26 AM, Makimoto Marakatti (maki...@gmail.comjavascript:) wrote: Hi all I had few sudo issues in the past, and those got solved. Now after updating to latest release (1.5.3

Re: [ansible-project] Sudo issues... again

2014-03-20 Thread Makimoto Marakatti
For the record I do have this on ansible.cfg: remote_tmp = /tmp On Thursday, 20 March 2014 14:34:06 UTC, Makimoto Marakatti wrote: Hi Pipelining is most definitely on. The speed advantage is great. I tried disabling it and see, but the end result is the same. with pipelining

Re: [ansible-project] Sudo issues... again

2014-03-20 Thread Makimoto Marakatti
By the way, I did forget to mention that I tried to give a passwordless sudo access to the 'ansible' user. And did not work. Got the same output. Which leads me to think that sudo does not get called properly. Just speculating thou On Thursday, 20 March 2014 14:35:19 UTC, Makimoto Marakatti

Re: [ansible-project] Sudo issues... again

2014-03-20 Thread Makimoto Marakatti
On Thursday, 20 March 2014 14:35:19 UTC, Makimoto Marakatti wrote: For the record I do have this on ansible.cfg: remote_tmp = /tmp On Thursday, 20 March 2014 14:34:06 UTC, Makimoto Marakatti wrote: Hi Pipelining is most definitely on. The speed advantage is great. I tried disabling

Re: [ansible-project] Sudo issues... again

2014-03-20 Thread Makimoto Marakatti
the transport to paramiko or smart? On Thu, Mar 20, 2014 at 11:25 AM, Makimoto Marakatti maki...@gmail.comjavascript: wrote: Hi Last working one was 1.5.1. And yes few changes to the cfg. Here the comments stripped version: [defaults] hostfile = /ansible/etc/hosts library

Re: [ansible-project] per host configuration option

2014-03-13 Thread Makimoto Marakatti
. Thanks! On Thu, Mar 13, 2014 at 8:41 AM, Makimoto Marakatti maki...@gmail.comjavascript: wrote: Hi Just bumping this thread to let interested parties know I found the solution for this. I had in .ansible.cfg this line: ask_sudo_pass = True Once that was removed all issues have

Re: [ansible-project] Re: Ansible 1.5.1 released: security updates

2014-03-11 Thread Makimoto Marakatti
someone delete that shortly. Download the 1.5.1 tarball. On Tue, Mar 11, 2014 at 5:16 AM, Makimoto Marakatti maki...@gmail.comjavascript: wrote: Hi On the release dir, the new file reads: ansible-1.6.tar.gz 10-Mar-2014 23:13 532K I'm guessing this is a typo?? On Monday, 10 March

[ansible-project] ad-hoc works, playbook fails. same task

2014-03-05 Thread Makimoto Marakatti
Hi I'm having an issue I can't even begin to understand: I'm trying to replace some files and I can do that without any issue if I do that from an ad-hoc command. But if I try to do the SAME command from a playbook, it fails. This is ansible 1.5 on centos 6.4 on the master and centos 6.x on

Re: [ansible-project] ad-hoc works, playbook fails. same task

2014-03-05 Thread Makimoto Marakatti
? -- Michael On Mar 5, 2014, at 10:24 AM, Makimoto Marakatti maki...@gmail.comjavascript: wrote: Hi I'm having an issue I can't even begin to understand: I'm trying to replace some files and I can do that without any issue if I do that from an ad-hoc command. But if I try to do

Re: [ansible-project] ad-hoc works, playbook fails. same task

2014-03-05 Thread Makimoto Marakatti
the point of asking then?? Anyways, thanks for the answer. Will try and report back tomorrow. On Wednesday, 5 March 2014 18:41:11 UTC, Adam Morris wrote: On Wednesday, March 5, 2014 7:30:57 AM UTC-8, Makimoto Marakatti wrote: I've got ask_sudo_pass = True on ~/.ansible.cfg Both are run

Re: [ansible-project] per host configuration option

2014-02-13 Thread Makimoto Marakatti
if it is a permission issue, you can fix it using the raw module?! On 12 February 2014 18:57, Makimoto Marakatti maki...@gmail.comjavascript: wrote: Well, if I set remote_tmp to the default I get the same error message as above in ~50% of my servers. Setting it to /tmp gives me issues

Re: [ansible-project] per host configuration option

2014-02-13 Thread Makimoto Marakatti
UTC, Walid Shaari wrote: is any of the /tmp and $HOME/tmp in a shared file system? On 13 February 2014 11:34, Makimoto Marakatti maki...@gmail.comjavascript: wrote: No difference there really. I even tried to chmod 777 ~/.ansible to see if it made a difference, but no luck. I will get

[ansible-project] per host configuration option

2014-02-12 Thread Makimoto Marakatti
Hi I've got a machine that needs to have remote_tmp set to $HOME/.ansible/tmp. But this gives me issues with the rest of the boxes. So the option in the config file says remote_tmp = /tmp. I've tried to set the option on the inventory file for this host only: commando

Re: [ansible-project] per host configuration option

2014-02-12 Thread Makimoto Marakatti
Is there a way then to set this in a playbook at runtime? On Wednesday, 12 February 2014 12:39:02 UTC, Brian Coca wrote: this is not currently configurable by host, just the ansible.cfg setting and the environment variable ANSIBLE_REMOTE_TEMP. -- You received this message because you are

Re: [ansible-project] per host configuration option

2014-02-12 Thread Makimoto Marakatti
to add it as an inventory variable would be accepted (just apply to any group you need), but I'm not sure it really belongs as a playbook keyword. On Wed, Feb 12, 2014 at 7:53 AM, Makimoto Marakatti maki...@gmail.comjavascript: wrote: Is there a way then to set this in a playbook