[ansible-project] Re: dict merge - with_dict expects a dict

2015-03-11 Thread John McNulty
Hi again. Thanks .. I got so hung up on using with_dict I didn't consider taking another tack. I'm reconsidering the decision to not to use hash_behaviour=merge as that solves my problem + would also come in handy elsewhere, like combining default sysctl parameter changes with additional

[ansible-project] Re: [ansible-devel] Ansible 1.9.0 rc1 is now available

2015-03-11 Thread James Cammarata
Hi Matt, We had a lot of requests for pbrun support from some users and customers, and Brian had already done a lot of work on it for the 1.9 release before we had originally changed course and decided to make it a 2.0 feature. However, we decided to make it a stretch goal for 1.9, so users who

[ansible-project] Conditions based on dict (environmental variable)

2015-03-11 Thread Bence Takács
If I check a remote dict item (inside a role/playbook), that may not be present like: debug msg=JAVA_HOME= {{ ansible_env.JAVA_HOME }} Then I get the following exception: TASK: [java-noinstall | debug msg=JAVA_HOME= {{ ansible_env.JAVA_HOME }} ] *** fatal: [vm] = One or more undefined

[ansible-project] Re: dict merge - with_dict expects a dict

2015-03-11 Thread Jonathan Davila
Does my example above help you as far as the templating piece? Personally I would abstract out the desired state for the route-file status into it's own dict to smth like this: route_file_state: routes-other: present routes-ext: absent would prevent that extra attribute from

Re: [ansible-project] conditional with register in one task?

2015-03-11 Thread Matt Martz
Even though a task is skipped, the registered variable is still created. You would want to check something like the following on your test 2 task instead: when: not test_1|skipped On Wed, Mar 11, 2015 at 10:06 AM, Marc Patermann hans.mo...@ofd-z.niedersachsen.de wrote: Hi, should this work:

[ansible-project] Re: dict merge - with_dict expects a dict

2015-03-11 Thread Jonathan Davila
Would you mind sharing the full body of the task that pertains to this as well as the template file? On Tuesday, March 10, 2015 at 12:19:46 PM UTC-4, John McNulty wrote: So the reason why I tried using union was this github issue ( https://github.com/ansible/ansible/issues/7495 ) which

[ansible-project] Re: dict merge - with_dict expects a dict

2015-03-11 Thread John McNulty
Yes, I can work with that. Thanks for your help. On Wednesday, 11 March 2015 17:15:58 UTC, Jonathan Davila wrote: Does my example above help you as far as the templating piece? Personally I would abstract out the desired state for the route-file status into it's own dict to smth like

[ansible-project] K-root (DNS instance) uses Ansible

2015-03-11 Thread Jan-Piet Mens
Just a small quote regarding K-root (DNS) from the good folk at RIPE [1]: Configuration management of our K-root server platforms is now automated almost entirely, using a customised tool set based on Ansible. This eases the day-to-day operations effort for our

Re: [ansible-project] K-root (DNS instance) uses Ansible

2015-03-11 Thread Brian Coca
Nice, now ansible is part of the basic structure of the internet ... insert plumbing allegory here. 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

Re: [ansible-project] with_items: not working for me.

2015-03-11 Thread Chanaka Samarajeewa
Thanks for the help! On Monday, February 23, 2015 at 3:44:51 PM UTC-8, Brian Coca wrote: you indented with_items too much On Mon, Feb 23, 2015 at 4:42 PM, Chanaka Samarajeewa cha...@jostle.me javascript: wrote: Hello, Can someone please let me know why I am getting this error

[ansible-project] Help with with_items from file

2015-03-11 Thread Chanaka Samarajeewa
Hello, I am trying to use with_items: from a file but I am getting the following error. I can't find any documentation to help me with this. I'm hoping someone can help me. The error message and my files are as follows: Error: TASK: [cloudwatch_alarms | include_vars ec2-alarms.yml]

[ansible-project] Re: AWS ec2_elb register multiple instances to and elb?

2015-03-11 Thread Vishal Uderani
nevermind i figured my ec2_elb problem was though . the instance_ids need to be passed in via complex args , since they are an array and the standard key=value argument method would not work here . To workaround this , I passed the ids through the jinja2 join filter instance_id: '{{

[ansible-project] Re: AWS ec2_elb register multiple instances to and elb?

2015-03-11 Thread Vishal Uderani
Update: This only works when you have value from instance_ids . Having multiple id's creates a malformed string i-x,i- while it should look like i-4f8cf126', 'i-0bb7ca62 How can this be fixed ? Any help would be appreciated On Wednesday, March 11, 2015 at 11:50:16 AM UTC+5:30,

[ansible-project] Re: [ansible-devel] Ansible 1.9.0 rc1 is now available

2015-03-11 Thread Serge van Ginderachter
On 11 March 2015 at 00:08, James Cammarata jcammar...@ansible.com wrote: $ git checkout v1.9.0-0.1.rc1 $ . hacking/env-setup After which time you can run ansible and ansible-playbook like normal. If you're not familiar with the hacking/env-setup script, please refer to the documentation

Re: [ansible-project] F5 disable pool/node

2015-03-11 Thread Matt Hite
BTW, if you don't mind -- for those of you who have tested this, please comment on the pull requests so Brian knows it works as intended. https://github.com/ansible/ansible-modules-extras/pull/288 https://github.com/ansible/ansible-modules-extras/pull/282 Thanks, -M On Tue, Mar 3, 2015 at

[ansible-project] registered variables and ec2 with_items on private and public subnet

2015-03-11 Thread Arbab Nazar
Hi, Below is the playbook, which work fine and create an ec2 instance inside the Public subnet inside my VPC and register the result inside the ec2 variable, but the problem is sometime the Associate new EIP to the NAT Instance work and sometime fail, the reason is that, if the Public subnet

[ansible-project] Re: [ansible-devel] Ansible 1.9.0 rc1 is now available

2015-03-11 Thread James Cammarata
No, we noticed that too, but decided to go ahead with the release candidate as we weren't sure if it was simply something that needed to be adjusted in the test due to the PBRun-related changes. If it's simply test related, we'll put the fix in the final release or the next RC so it tests

[ansible-project] (Derived) variable resolution bug?

2015-03-11 Thread Ananda Debnath
*Is this a bug or am I misunderstanding how variables are resolved based on precedence? According to http://docs.ansible.com/playbooks_variables.html, * * extra vars (-e in the command line) always win * then comes connection variables defined in inventory (ansible_ssh_user, etc) * then