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
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
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
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
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
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
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
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
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,
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
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
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
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",
...
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
14 matches
Mail list logo