Re: [ansible-project] How Network Modules using openssh controlpersist feature?

2016-09-20 Thread Peter Sprygada
No, there is no support for ControlPersist (or similar) in the paramiko library. On Tue, Sep 20, 2016 at 9:48 AM, wrote: > I find that the Network Modules must use paramiko, does paramiko support > openssh ControlPersist similar feature? > > > building ssh connection by

[ansible-project] How Network Modules using openssh controlpersist feature?

2016-09-20 Thread jacky . gao2016
I find that the Network Modules must use paramiko, does paramiko support openssh ControlPersist similar feature? building ssh connection by paramiko: Code in module_util/shell.py def open(self, host, port=22, username=None, password=None, timeout=10, key_filename=None, pkey=None,

[ansible-project] how to compare two files and get files and get the name differenced file name in ansible

2016-09-20 Thread Chichu sam
HI Fiends, Please help on this, Folder1 :Always one file cat file2 SAM:26 Folder2 : two files cat file2 RAM:26 cat file 3 SAM:26 Here first folder folder will have always have one file and it is always standard , Second folder might have n number of files We need to compare the first

[ansible-project] How to execute a backend java program?

2016-09-20 Thread 刘松
Hi, I use ansible 2.0.0. and I want start a java web program which use spring boot and compile as a jar file, but it always don't work. I can execute "nohup java -jar xxx.jar &" on the target machine (the target machine is centos 7),but when I execute through ansible, it don't work. my

[ansible-project] Re: SSH error on Centos - ansible 1.9.2

2016-09-20 Thread Jyoti Ranjan
Hi Michael, Did this issue got resolved for you? I am also seeing similar issue but unable to find clue. Regards, Jyoti Ranjna On Wednesday, August 26, 2015 at 6:36:17 PM UTC+5:30, Michael Bubb wrote: > > I hve ssh-agent running and tested with it: > > [root@ansible-wdc-1 ~]# ssh-add -l > 2048

[ansible-project] Re: logging in the client

2016-09-20 Thread Yorick P
If you run a playbook, you can also use the --diff options, to see what changes. More info see http://docs.ansible.com/ansible/playbooks_checkmode.html#showing-differences-with-diff On Tuesday, August 30, 2016 at 12:48:58 PM UTC+2, sabarinath g wrote: > > Hi, > > I wanted to know Does

[ansible-project] Blockinfile module not in the right place?

2016-09-20 Thread Clifford Trueman
So running into a few issues running blockinfile for a few tests. I created a really basic playbook literally form the ansible doc example - name: insert/update eth0 configuration stanza in /etc/network/interfaces (it might be better to copy files into /etc/network/interfaces.d/)

[ansible-project] Support for Cloudformation change sets

2016-09-20 Thread Toni Juvani
Hi, We have implemented our AWS resource stacks using Cloudformation templates chained using Ansible. Previously the problem has been that I don't know for sure what is going to happen after schanges to the templates and running the it in. I've noticed that Cloudformation now supports Change

[ansible-project] Examples of Multiple Instances of a "thing" on a single box

2016-09-20 Thread Nick Tkach
Does anyone know of any good examples of having more than one instance of an app per box? Most examples seem to be grouped into something like web_servers group has boxes 1,2,3 and has a nice, neat *one* httpd on 1, *one* httpd on 2, and *one* httpd on 3. Problem I'm having is that I'm

[ansible-project] Problems with asa_config

2016-09-20 Thread Steven Carter
I am having problems running the following play: - hosts: cil-fw gather_facts: no connection: local vars_files: - ./cilfu-vars.yml - ./cil-vault.yml vars: cli: host: "{{ inventory_hostname }}" username: "{{ cil_admin_username }}" password: "{{

Re: [ansible-project] when: var is defined deprecated?

2016-09-20 Thread pixel fairy
yes. used a group so the when was not needed. On Tuesday, September 20, 2016 at 7:11:17 AM UTC-7, Matt Martz wrote: > > You should generally provide your full task, so I'm going to take a guess > here. > > I am pretty sure the problem is that you are using `with_items: users` > also. The

Re: [ansible-project] logging in the client

2016-09-20 Thread Brian Coca
Ansible will log to syslog or systemd, depending on system. The amount of logging, can be controlled through ansible.cfg or using the no_log directive to disable it for a task/play. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Need keys for vaulted group vars

2016-09-20 Thread Brian Coca
The group/host_vars are ALWAYS loaded as the inventory needs to exist BEFORE ansible can validate the hosts it needs. If you need those vaulted files to only be available for certain plays, move them out of group/host_vars and use vars_files/include_vars. -- Brian Coca -- You received

Re: [ansible-project] Using lookup with log_path in ansible.cfg

2016-09-20 Thread Brian Coca
This won't work, I don't believe it ever has as there is no general templating support in ansible.cfg. A few things like `ansible_managed` have a 'special' substitution or use of ~/ or $HOME for some paths, but nothing allows for lookups or any other jinja2 templating. -- Brian Coca

Re: [ansible-project] UFW module issues

2016-09-20 Thread Brian Coca
This looks like a bug introduced into the module, please open a ticket at https://github.com/ansible/ansible-modules-extras/. Fill in the template and give as much information as you can. -- Brian Coca -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] openstack restful api

2016-09-20 Thread Brian Coca
That depends on the module, many of them use an API to do their work, normally you use those with `local_action`. Most cloud and 'network appliance' modules work this way. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Define group in hosts file based on intersection of 2 groups

2016-09-20 Thread Brian Coca
No, that is only available in the `hosts:` clause of a play, with --limit and for `ansible` in the host pattern specified (equivalent to `hosts:` in a play). -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] Dependencies from private repo

2016-09-20 Thread Karibou Hunter
Hi all, I am trying to automatically pull roles within a role meta/main.yml dependencies. I have seen something deleted on documentation about this format : dependencies: - { role:

[ansible-project] Re: Kerberos Delegation Issues

2016-09-20 Thread Surred
JH, Do you know of any other tests/logging I could try/review to determine why the kerberos delegation is not working in my environment? On Friday, September 16, 2016 at 2:22:05 AM UTC-5, J Hawkesworth wrote: > > Sorry, I should have been clearer. 2.0.0.2 and 2.1.1 are ansible versions. > > >

Re: [ansible-project] when: var is defined deprecated?

2016-09-20 Thread Matt Martz
You should generally provide your full task, so I'm going to take a guess here. I am pretty sure the problem is that you are using `with_items: users` also. The problem is that `when` statements are evaluated *after* `with_items`, since the `when` statement is evaluated per item in the loop. On

[ansible-project] when: var is defined deprecated?

2016-09-20 Thread pixel fairy
using ansible 2.1.1.0 running a task with 'when: users is defined' works fine for hosts that have that variable. for hosts that dont, the play still runs, but gives a warning that in the future, an undefined variable will be a fatal error. is there another way of running tasks based on the

[ansible-project] Re: unable to install exchange 2016 using ansible

2016-09-20 Thread Chandra Pandey
Hi, Can you please let me know the commands to install and configuration of host or group var ? On Tuesday, September 13, 2016 at 1:18:49 AM UTC+5:30, Chandra Pandey wrote: > > I get error while installing fresh exchange 2016 server using ansible --- > > > ExchangeSetup.log Error > > Active

Re: [ansible-project] loops, file globs, ssh_keys...

2016-09-20 Thread pixel fairy
On Monday, September 19, 2016 at 12:33:10 PM UTC-7, Kai Stian Olstad wrote > > > You could put this in it's own file, use include with with_items and > loop_control. > > https://docs.ansible.com/ansible/playbooks_loops.html#loop-control odd to have to put that into two files, but exactly what

[ansible-project] Command not working on remote host through shell module or playbook

2016-09-20 Thread DHAVAL JAISWAL
Ansible version: ansible 1.9.2 I am unable to execute following command from shell module neither through playbook. It could be any command at the run time. While reading found $,% need the escape string. Tried but not working. Is there any way/module through which i can run any command on the

[ansible-project] Re: ansible asks for sudo password but local command does not

2016-09-20 Thread Paul Tötterman
> > sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo > BECOME-SUCCESS-mukfdpvotlpobkadiwdhuktbihrwsnnr; LANG=en_US.utf8 > LC_ALL=en_US.utf8 LC_MESSAGES=en_US.utf8 /usr/bin/python > /home/john/.ansible/tmp/ansible-tmp-1474312334.89-150221606981760/setup; rm > -rf