Re: [ansible-project] Issue with registered variables

2016-12-08 Thread Cann
Thank you so much Matt Martz! You're awesome! On Thursday, December 8, 2016 at 6:08:54 PM UTC-8, Matt Martz wrote: > > As of Ansible 2.2 with_items does not support bare variables. > > As such you need to use: > > with_items: "{{ ec2_result.instances }}" > > Otherwise it will treat

Re: [ansible-project] ansible using versioned playbooks ala r10k

2016-12-08 Thread James Martin
Answer is to use requirements.yml: http://docs.ansible.com/ansible/galaxy.html#id10 On Thu, Dec 8, 2016 at 1:10 PM, Vince Skahan wrote: > Working in a puppet shop, I have to admit r10k is pretty cool. It lets us > set up 'versioned' environment definitions that we can

Re: [ansible-project] Issue with registered variables

2016-12-08 Thread Matt Martz
As of Ansible 2.2 with_items does not support bare variables. As such you need to use: with_items: "{{ ec2_result.instances }}" Otherwise it will treat ec2_result.instances as a string. On Thu, Dec 8, 2016 at 7:08 PM Cann wrote: > Hi guys , I am having a really hard time

[ansible-project] Issue with registered variables

2016-12-08 Thread Cann
Hi guys , I am having a really hard time with *registered variables*. I banged my head around all day but could not figure this out. :( I simply want to register my task result as a variable and access it later on. This is my *debug: var=* result: https://pastebin.mozilla.org/8950629 and I

[ansible-project] Re: [ansible-devel] IMPORTANT - Ansible Repository Merge

2016-12-08 Thread tkuratomi
If you're just on ansible-project list and need more background information look at this mailing list thread: https://groups.google.com/forum/#!topic/ansible-devel/mIxqxXRsmCI = Repomerge on repomerge, check this thread: Update Following the outline of a plan by willthames and a lot of of

[ansible-project] Strange lookup behavior after ansible 2.2

2016-12-08 Thread Vyacheslav
Hi, Assuming I have lookup plugins of such form: Single """ """ from __future__ import (absolute_import, division, print_function) from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase __metaclass__ = type class

[ansible-project] Oracle 12c Install from Ansible Script

2016-12-08 Thread BPradhan
Dear All Am trying to install Oracle Database 12.1.0.2 on a target host, using a ansible script on Ansible Master server. On the target host 'oracle' OS user has the correct groups: $ id oracle uid=101(oracle) gid=204(oinstall) groups=205(dba),204(oinstall) But the ansible script is

[ansible-project] Oracle Database 12c Install using Ansible INS-35341

2016-12-08 Thread BPradhan
Dear All Am trying to install Oracle Database 12.1.0.2 on a target host, using a ansible script on Ansible Master server. On the target host 'oracle' OS user has the correct groups: $ id oracle uid=101(oracle) gid=204(oinstall) groups=205(dba),204(oinstall) But the ansible script is

[ansible-project] ansible using versioned playbooks ala r10k

2016-12-08 Thread Vince Skahan
Working in a puppet shop, I have to admit r10k is pretty cool. It lets us set up 'versioned' environment definitions that we can apply to the right target computers, ala "use the development version of the puppet code (profile) that configures package XYZ".All those profiles are in git,

[ansible-project] Ansible Security Mechanisms

2016-12-08 Thread Frank Albert
Hello Experts, I am using ansible to configure my windows servers with powershell playbooks. Ansible servers communicates with the endpoints using WinRM Connections. I fear that if in any case the ansible server gets compromised the attacker can modify the playbooks and execute the malicious

Re: [ansible-project] Question: how to use variable in with_sequence, casting to int results in zero value

2016-12-08 Thread frank
Hi Kai, Thanks for your reaction. I think item.path won't work because of the structure of result.files. result.files contains a list [..path..], [.path..] ,So in the debug var i should reference item[0].path , item[1].path I worked my way around creating a list # create a list of policies

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-08 Thread Sebastian S.
In fact there is one. But when I run this one something goes wrong: ansible@DE9899S76 /etc/ansible/roles % /usr/bin/ansible Traceback (most recent call last): File "/usr/bin/ansible", line 46, in from ansible.module_utils._text import to_text ImportError: No module named _text

[ansible-project] How to perform tasks only one host, based on previous output

2016-12-08 Thread Kevin Csuka
Hi, My goal is to perform tasks only one host based on the output. Searched for --limit module to use in playbooks, but it is not present. A shell script is executed on 3 nodes, which returns a boolean. ok: [localMulti1] => { "variable": { ... "stdout": "true", ...

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-08 Thread Andreas Olsson
ons 2016-12-07 klockan 23:40 -0800 skrev Sebastian S.: > which ansible says: /usr/local/bin/ansible That looks more like somewhere where Pip would install Ansible, or where someone would install Ansible manually. Any chance that you also have a /usr/bin/ansible, which better match the apt