[ansible-project] hostvars behavior different version 1.9 ->2.1

2016-09-03 Thread George Hunt
We have a template to create ifcfg files with the following partial snippet: (second line commented out for test with 2.1) HWADDR={{ ansible_wlp2s0.macaddress }} {#HWADDR={{ hostvars[inventory_hostname]['ansible_' + xsce_wireless_lan_iface|trim]['macaddress'] ]] #} In ansible version 1.9 both

Re: [ansible-project] Running a task only when tag defined

2016-09-03 Thread Kai Stian Olstad
On 03. sep. 2016 19:27, Jon Langemak wrote: I want to be able to run a task only when I pass a tag to the playbook. Namely, I want to have a tag that allows for decoming a user and one would normally never run that as part of normal playbook run. To my knowledge this is not possible to do with

Re: [ansible-project] Condititionals

2016-09-03 Thread Kai Stian Olstad
On 03. sep. 2016 23:15, Tony Owens wrote: In my yml I have this defined. 1. - name: "pull image to force update if ImageTag=latest" 2. shell: "docker pull {{ image }}" 3. when: "{{ ImageTag == latest }}" but I get this error when executing. I know that I could use ignore_errors but th

[ansible-project] Condititionals

2016-09-03 Thread Tony Owens
In my yml I have this defined. 1. - name: "pull image to force update if ImageTag=latest" 2. shell: "docker pull {{ image }}" 3. when: "{{ ImageTag == latest }}" but I get this error when executing. I know that I could use ignore_errors but that doesn't seem like the right thing to d

Re: [ansible-project] synchronization among nodes in a group

2016-09-03 Thread Amir Samary
I managed to implement this thanks to this stack overflow post: http://stackoverflow.com/questions/39300734/how-can-i-configure-an-all-or-nothing-ansible-playbook?answertab=votes#tab-top I hope it helps. Kind regards, AS El viernes, 2 de septiembre de 2016, 17:38:45 (UTC-3), Amir Samary escribió

[ansible-project] ansible module for aws ec2 alb on the way?

2016-09-03 Thread Kevin Mcnally
Hi, Anyone know when we will get ec2 alb module or where I should look to see whats in the pipeline? I tried to find aws cli for managing ec2 alb but its not available either. Wanted to use these for rolling release in ansible as we are moving from elb to alb. Thanks Kevin -- You received

[ansible-project] arrays/loops/dict mixed. Confused. Did research

2016-09-03 Thread AnsiNoob
Hi I have means to generate a variables file which will look like: --- pools: name1: x: ['1','1','1','1','2','2','2','2','3','3','3'] y: ['0','0','0','0','0','0','0','0','0','0','0'] z: ['1','2','3','4','1','2','3','4','1','2','3'] name2: x: ['1','1','1','1','2','2','2','2','3

[ansible-project] ansible stuck at setup module

2016-09-03 Thread Sharuzzaman Ahmat Raslan
Hi, Initially my playbook stuck at setup stage for a specific server. Upon running ansible - -m setup , the process also stuck. I have set the environment variable ANSIBLE_KEEP_REMOTE_FILES=1 then trying again, and still stuck. In the target server, I went to the folder /root/.ansible/tm

[ansible-project] Running a task only when tag defined

2016-09-03 Thread Jon Langemak
I want to be able to run a task only when I pass a tag to the playbook. Namely, I want to have a tag that allows for decoming a user and one would normally never run that as part of normal playbook run. I found the conditional 'what: tags is defined' but it doesnt seem to work. My task look

Re: [ansible-project] How can I configure an “all or nothing” Ansible playbook?

2016-09-03 Thread Matt Coddington
Hi Amir, Have you taken a look at http://docs.ansible.com/ansible/playbooks_error_handling.html#aborting-the-play? I haven't used it myself, but i think the any_errors_fatal play option may be what you need? matt On Fri, Sep 2, 2016 at 5:21 PM, Amir Samary wrote: > Hi everyone! > > I have a bu

[ansible-project] Weer

2016-09-03 Thread Peter Smallegange
-- 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+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegrou