[ansible-project] Ansible Tower - Job Type: Check with --diff

2016-11-08 Thread Lance Le Roux
I am using junos_check and like to run my playbook with the --check --diff arguments as it returns what configuration changes will actually be applied to the network device. i.e. [edit system arp] - aging-timer 240; + aging-timer 40; However when using Ansible Tower with the Job Type:

Re: [ansible-project] Ansible in the docker container?

2016-11-08 Thread Yorick P
I faced the same thing, and I solved this by putting my config files or data in in a host directory and mounted this as a data volume (https://docs.docker.com/engine/tutorials/dockervolumes/). I run Ansible from my desktop, run a playbook and template out or copy the necessary files to the

[ansible-project] Re: Ansible in the docker container?

2016-11-08 Thread James Tanner
The docker connection plugin is probably what you are looking for. It allows ansible to manipulate the container via the docker exec api. On Monday, November 7, 2016 at 8:18:34 PM UTC-5, Steven Truong wrote: > > Hi all, > > Am I being too picky here or just being naive in the ways I approach my

[ansible-project] Store playbook name as a 'global' variable across plays?

2016-11-08 Thread burns498
Hello - Is there a way to store playbook name as a 'global' variable across plays?? I've seen potential options via callbacks or group_vars:all but still struggling with

Re: [ansible-project] Re: How to get latest versions of roles using galaxy?

2016-11-08 Thread Kai Stian Olstad
On 08. nov. 2016 20:38, Zhomart Mukhamejanov wrote: Ok, I've created simple script for that. .roles-list.yml ``` - name: lesmyrmidons.mongodb github: lesmyrmidons/ansible-role-mongodb - name: Graylog2.graylog-ansible-role github: Graylog2/graylog-ansible-role ansible-galaxy can do that

[ansible-project] Re: How to get latest versions of roles using galaxy?

2016-11-08 Thread Zhomart Mukhamejanov
Ok, I've created simple script for that. .roles-list.yml ``` - name: lesmyrmidons.mongodb github: lesmyrmidons/ansible-role-mongodb - name: Graylog2.graylog-ansible-role github: Graylog2/graylog-ansible-role ``` ./update-roles ``` #!/usr/bin/env ruby require 'yaml' require 'tmpdir' root

[ansible-project] nxos_command using the src option

2016-11-08 Thread Matt Mullen
I'm using the src parameter of nxos_config to enter several configuration lines at once. When it detects that one of the lines differs from the running configuration, does it push the entire block from the src file or just the line that was different? Also is there any way to display the

[ansible-project] How to get latest versions of roles using galaxy?

2016-11-08 Thread Zhomart Mukhamejanov
Currently I'm using a role with it's dependencies. Author of the role fixed some major bugs but didn't pushed the release to the galaxy.ansible.com. I want to get latest version of the role and it's dependencies from github. How can I do it? -- You received this message because you are

[ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-11-08 Thread Tony Reveal
I'm still looking for an answer on this. I still get a message that "asa_command is not a valid attribute for a play". I've even cloned the modules-extras repo and included the local repository in my ansible.cfg. Even going so far as to specify the ASA directory:

[ansible-project] Re: Targeting Windows 2008 R2 machines with Ansible?

2016-11-08 Thread Matt Davis
We're still regularly swatting away the places that want us to support Server 2003 / PS 2... On Monday, November 7, 2016 at 10:17:54 AM UTC-8, J Hawkesworth wrote: > > Hello, > > I'm curious if anyone is making use of Server 2008/R2 versions of Windows > Server any more. > > I am setting up a

[ansible-project] Re: How to save stdout_lines to a file without losing the newlines

2016-11-08 Thread jean-christophe manciot
@Peter Sprygada: I'm now facing a more complicated case where I have trouble accessing stdout[0]: - name: Fetching PACL_Table on all L2 interfaces from the remote node ios_command: provider: "{{ connections.ssh }}" commands: - "show run interface {{ net_item.key }} |

Re: [ansible-project] Unreachable host breaks a template?

2016-11-08 Thread Brian Coca
Hopefully this fixes the issue going forward https://github.com/ansible/ansible/pull/18409 -- 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 email

[ansible-project] [ansible 2.2.0] Blocks and When condiftion

2016-11-08 Thread Patrick Montanari
Hello, Since ansible 2.2.0 when using a when condition for a block, inner when are no more evaluated and are executed. Ex: - blocks: - include xxx.yml when: condition1 - include: yyy.yml when: condition2 when: block_condition It is fine with ansible 2.1.0 -- You received

[ansible-project] vyos_config question

2016-11-08 Thread Carl Betts
Have been trying to get the vyos_config module to work (https://docs.ansible.com/ansible/vyos_config_module.html). However always getting this error: fatal: [localhost]: FAILED! => {"changed": false, "commands": ["show configuration commands"], "failed": true, "msg": "timeout trying to send

[ansible-project] Re: Targeting Windows 2008 R2 machines with Ansible?

2016-11-08 Thread autogun
We're successfully deploying Windows Updates with Ansible on numerous Windows 2008/12R2 boxes. Prereq. are stated in docs, such as WinRM & Powershell 3. D On Monday, November 7, 2016 at 8:17:54 PM UTC+2, J Hawkesworth wrote: > > Hello, > > I'm curious if anyone is making use of Server 2008/R2