Re: [ansible-project] Re: Forums vs mailing list? Here's a short 2-question voting survey.

2014-01-14 Thread Guillaume Subiron
Le 14/01/11 09:20, rektide claviotta : only about 50% of the respondents wanted to keep the mailing list. This implies strongly that switching away from the mailing list would be a potentially positive thing. Ugg. I really don't look forward to some crappy forum software being the

Re: [ansible-project] Re: Forums vs mailing list? Here's a short 2-question voting survey.

2014-01-14 Thread Vincent Van der Kussen
+1(00) On Jan 14, 2014 10:03 AM, Guillaume Subiron maet...@subiron.org wrote: Le 14/01/11 09:20, rektide claviotta : only about 50% of the respondents wanted to keep the mailing list. This implies strongly that switching away from the mailing list would be a potentially positive

[ansible-project] Ignoring a line in a template file

2014-01-14 Thread Eric Palmer
I have this line LogFormat { \@timestamp\: \%{%Y-%m-%dT%H:%M:%S%z}t\, \@fields\: { \client\: \%a\, \duration_usec\: %D, \status\: %s, \request\: \%U%q\, \method\: \%m\, \referrer\: \%{Referer}i\, \vhost\: \%v\ , \responsebytes\: \%B\} } log_json in a template .j2 file I want it to pass

[ansible-project] ansible_python_interpreter for ad-hoc ansible commands

2014-01-14 Thread Walid
Hi, What would be the best way to set ansible_python_interpreter for almost 50% of the hosts in the inventory for ad-hoc ansible command. what i did is i grouped them under one group in the inventory [python27:children] and have set the vars for this group [python27:vars]

Re: [ansible-project] Optional second key with_subelements

2014-01-14 Thread Michael DeHaan
You could write your own lookup plugin. I think it would be very important to have the existing continue to require the key, to avoid confusing errors in the case of typo'ing the key and not getting any results. On Mon, Jan 13, 2014 at 10:54 PM, John Meredith jo...@psynix.com wrote: Hi, I

Re: [ansible-project] ansible_python_interpreter for ad-hoc ansible commands

2014-01-14 Thread Michael DeHaan
This would be a fine way to do it. I'd probably just associate it with a group named after the OS if that were me, but maybe it's not OS specific in your case. On Tue, Jan 14, 2014 at 7:53 AM, Walid walid.sha...@gmail.com wrote: Hi, What would be the best way to set

Re: [ansible-project] ansible_python_interpreter for ad-hoc ansible commands

2014-01-14 Thread Walid
Hi Michael, that is what i have done eventually, created a group for RHEL5 and add the possible groups that use rhel5 under it to get the variable. thanks, W. On 14 January 2014 16:26, Michael DeHaan mich...@ansibleworks.com wrote: This would be a fine way to do it. I'd probably just

Re: [ansible-project] Re: run multiple tasks in parallel for multiple hosts

2014-01-14 Thread Michael DeHaan
Ansible is designed to work this way intentionally as it's quite useful for inter-machine orchestration and extremely useful for fine grained control when we want to do things like work with load balancers. You might possibly want to consider invoking ansible-pull (or just ansible in local mode)

Re: [ansible-project] ansible_python_interpreter for ad-hoc ansible commands

2014-01-14 Thread Michael DeHaan
For information of other users, RHEL 5 should be fine if you just install python-simplejson for usage of most modules. However if you have python27 installed that's good too :) On Tue, Jan 14, 2014 at 8:30 AM, Walid walid.sha...@gmail.com wrote: Hi Michael, that is what i have done

Re: [ansible-project] Re: dynamic groups group_by always gives changed

2014-01-14 Thread Stephen Ryan
Any chance on having this fixed in trunk or has a reason shown up for not changing it? We simply remove the result['changed'] = True line and so far I've not seen any adverse affects but it's a little annoying to patch each time on upgrade. On Wednesday, 22 May 2013 16:40:42 UTC+1, Michael

Re: [ansible-project] with_items combined with with_first_file ?

2014-01-14 Thread martin
Hi Serge, This worked great, thank you. I didn't realize that you could use the with_* functions with lookup(), now things makes a lot more sense. Best regards, /Martin Something like this might work: ​​ - name: Copy zone files copy: src={{ ​lookup('first_found', ['path/to/zones/' + ​

Re: [ansible-project] with_items combined with with_first_file ?

2014-01-14 Thread martin
Hi Serge, This worked great. I didn't realize that you could use the with_* functions with lookup(), now things makes more sense. Thank you! Best regards, /Martin Something like this might work: ​​ - name: Copy zone files copy: src={{ ​lookup('first_found', ['path/to/zones/' + ​ item

Re: [ansible-project] Re: dynamic groups group_by always gives changed

2014-01-14 Thread Michael DeHaan
group_by should definitely report changed when it adds new things to new groups. Also: this thread is 10 months old :) On Tue, Jan 14, 2014 at 9:59 AM, Stephen Ryan rya...@gmail.com wrote: Any chance on having this fixed in trunk or has a reason shown up for not changing it? We simply

Re: [ansible-project] Re: Ansible Tasks reusability

2014-01-14 Thread Adam Morris
On Tuesday, January 14, 2014 5:45:09 AM UTC-8, Michael DeHaan wrote: syslog: {% if ansible_distribution_version|truncate(1,true,'') = '6' %}rsyslog{% else %}syslog{% endif %} That's super gross IMHO... I would not want to see that in *anyone's* playbooks as that goes against much of the

Re: [ansible-project] Re: Ansible Tasks reusability

2014-01-14 Thread Michael DeHaan
Oh I'm not offended, don't worry about that. I'm just suggesting (especially for new comers on the list), that it's better to try to simplify first than resort to Jinja in most cases -- I like to use it to insert variables and occasionally loop in templates, but limit it to just that whenever

Re: [ansible-project] Finally tasks

2014-01-14 Thread Michael DeHaan
Not really. You can do: ansible-playbook one.yml; ansible-playbook two.yml On Tue, Jan 14, 2014 at 10:49 AM, Shai Israel s...@bigpanda.io wrote: Hi, I need to run cleanup tasks at the end of the playbook, no matter what the results of the other tasks. Is there any way to do it with

Re: [ansible-project] Re: dynamic groups group_by always gives changed

2014-01-14 Thread Michael DeHaan
You can always add changed_when: False to hide the output, but it's not really hurting anything. On Tue, Jan 14, 2014 at 10:27 AM, Stephen Ryan rya...@gmail.com wrote: Thought it would be better to follow up here for the history. Following the docs and using group_by for distributions to

[ansible-project] Re: Is there a way to set ENV variable on target hosts?

2014-01-14 Thread jepper
use ~/.ssh/config to work around this, so that ssh $(somewhere) drops you right into where you want to be e.g. for server01 where the non-root user is jboss. You will the private key for the user jboss on your management box. $cat config Host jboss-server01 Hostname server01.fqdn.com

[ansible-project] Multiple SSH Keys

2014-01-14 Thread BrianAI
So, I've noticed I have a tendency to do things a little backwards but, I'm hoping someone can clear something up for me. Originally, i was using the file/copy module in ansible to copy the authorized_keys2 file from the ansible server to the node in question. A colleague of mine stated I

Re: [ansible-project] Multiple SSH Keys

2014-01-14 Thread Erik Anderson
The authorized_key module *can* handle multiple keys per file. One per line as is usual with authorized_keys files. I do something like: - name: authorized_keys - Erik action: authorized_key user=erik key={{ lookup('file', 'pubkeys/erik') }} manage_dir=yes ...where pubkeys/erik is a file with

Re: [ansible-project] Multiple SSH Keys

2014-01-14 Thread BrianAI
Ah great! Thanks for the correction, so currently (and not a huge deal) the only limitation is no comments. Thanks again!! On Tuesday, January 14, 2014 3:53:56 PM UTC-5, Erik wrote: The authorized_key module *can* handle multiple keys per file. One per line as is usual with authorized_keys

[ansible-project] Ansible Mini Fest in Austin, 3/06 before SXSW Interactive, CFP now open

2014-01-14 Thread Michael DeHaan
We'reWEWe We're going to do a small half-day event in Austin, TX before South-by-Southwest Interactive on 3/06. Sign up for tickets here: http://t.co/VtIj83ClVl If you would like to speak, please submit a few paragraph abstracts of your proposal to c...@ansibleworks.com by 2/14. -- Michael

Re: [ansible-project] Multiple SSH Keys

2014-01-14 Thread Erik Anderson
On Tue, Jan 14, 2014 at 3:00 PM, BrianAI brian.a.imbri...@gmail.com wrote: Ah great! Thanks for the correction, so currently (and not a huge deal) the only limitation is no comments. Thanks again!! You're welcome. There may very well be a better way to manage things, and if so, I hope

[ansible-project] Re: ec2 module works...ec2.py does not (confused!)

2014-01-14 Thread Joshua Conner
On Monday, January 13, 2014 3:57:52 PM UTC-8, Mark Casey wrote: No change specifically with ec2.py... it doesn't work on the host where I wanted to use it, but it does on another host I tried it on. However, on the host where ec2.py is not working, I thought I'd mention that I am able to

[ansible-project] Re: ec2 module works...ec2.py does not (confused!)

2014-01-14 Thread Mark Casey
Thanks for all the great suggestions! Not sure if it will be today but I'll try them and post back how I get on. -- 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