Hi,
I want to gather all the NICs and its IP address from facts. So I tried
iterating to all interfaces, i.e
{% for nic in ansible_interfaces %}
{% set present_nic = 'facter_ipaddress_%s' | format( nic ) %}
| {{ nic }} | {{ present_nic }} |
{% endfor %}
The present_nic variable turn into some
Super frustrating ... this happened to me as well. Did you figure it out?
On Thursday, April 7, 2016 at 12:02:57 AM UTC-4, Zacharias Thompson wrote:
>
> I've been using a callback plugin in Ansible 1.9.4 to pull a bunch of
> variables, format them into a string, and send out an email to users.
I'm using below hacky approach (found somewere on the internet ;)
def __init__(self):
self.myvar = None
def v2_playbook_on_play_start(self, play):
var_mgr = play.get_variable_manager()
p_vars = var_mgr.get_vars(loader=play.get_loader())
Did you ever figure this out? I'm running into the same issue.
On Sunday, January 31, 2016 at 7:26:00 AM UTC-5, tiny...@gmail.com wrote:
>
> Hello,
>
> I'm trying to write callback plugin for ansible.
> Below code was working on in ansible-1.9, but it isn't in ansible-2.0
>
> def
On 23. aug. 2016 15:45, RICCARDO RUSSO wrote:
the following *ansible 2.1.1.0* command hangs:
ansible@ansible:~/playbooks/APS/test$ ansible -vvv 10.162.38.161 -m ping -i
/home/ansible/playbooks/APS/inventory/inventory.cfg
Using /etc/ansible/ansible.cfg as config file
<10.162.38.161> ESTABLISH
On 24. aug. 2016 23:23, Soren Olegnowicz wrote:
So I have a task that delegates a template deployed to one server to a
different server. When this task is run on just a single server I get no
errors. However if I try running this delegation task on all the servers
(16 servers) it needs to be
On 24. aug. 2016 23:25, Douglas Hammond wrote:
I'm trying to create client configs for each host in a group. When the
template is parsed the inventory set variable is not available in the
template.
bareos/Defaults/main.yml
bareos_client_fileset: SomeFileSet
This is not a inventory file
Used a brand new ubuntu 16 desktop vm and the ping works..issue resolved
--
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
So hoping to get this ironed out for the 2.2 release, I've merged
`include_role` into devel which now allows you to use 'roles as tasks'.
I know this is a feature many of you are eager to play with, so I thought
we should push it out ASAP to get early feedback and breakage.
The basic stuff is
Hello,
I am getting ready to have our general populace execute patches using
Ansible. We are running playbooks with wrapper shell scripts at the moment
and do not have Tower evaluated yet.
I would like to control what messages appears to them in the output of
plays. Ansible is extremely
use the ANSIBLE_STDOUT_CALLBACK environment varialbe:
ANSIBLE_STDOUT_CALLBACK=json ansible-playbook
--
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
wow it worked :) thanks Kai
However just one last question, I have multiple playbook but I want this
json out only for one. So I cant have this config in ansible.cfg
Is there a way to pass this config other than editing this ansible.cfg file?
On Friday, August 26, 2016 at 5:23:34 PM UTC+5:30,
On 26. aug. 2016 13:33, ankur.c...@gmail.com wrote:
I just added in my ansible.cfg file:
stdout_callback = skippy
callback_plugins = /home/ubuntu/projects/package/target/ansible/plugins/
callback
Downloaded plugin from https://github.com/petems/ansible-json and added it
in the above folder.
I just added in my ansible.cfg file:
stdout_callback = skippy
callback_plugins = /home/ubuntu/projects/package/target/ansible/plugins/
callback
Downloaded plugin from https://github.com/petems/ansible-json and added it
in the above folder.
Now when I execute the playbook, I get the kind of
On 26. aug. 2016 12:45, ankur.c...@gmail.com wrote:
This is not helpful to me as I only want json output and no thing in
between, because in shell script I want to read this output and convert the
output to json object.
Please let me know if I am not clear with my requirement.
When I run with
Thanks - resolved. Somehow the service was stopped :(.
On Monday, August 22, 2016 at 7:04:50 PM UTC+5:30, J Hawkesworth wrote:
>
> So that's a connection timeout. Is there a firewall between your ansible
> controller and the windows box?
> Did you run the configure for remoting .ps1 script on
Yes I tried it and it outputs json content for each task. Something like
this:
TASK [create some file]
ok: [172.31.9.253 -> localhost]
{"group": "ubuntu", "_ansible_no_log": false, "_ansible_delegated_vars":
{"ansible_host": "localhost"},
On 26. aug. 2016 11:33, ankur.c...@gmail.com wrote:
The callbacks don't work as using callback I am not able to remove messages
like
PLAY [all]
*
TASK [cmx_running_services]
The callbacks don't work as using callback I am not able to remove messages
like
PLAY [all]
*
TASK [cmx_running_services]
...
PLAY RECAP
19 matches
Mail list logo