[ansible-project] silly trick: you can use variables in the "- name:" part of a playbook

2016-08-09 Thread pixel fairy
i realize itfits how yaml and jinja2 works so probably obvious to many of you. never thought about it until after doing this and seeing the result. could make for more readable output. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] Re: Ansible GUI

2016-08-09 Thread pixel fairy
what would an ansible gui do? tower more of an ansible management system with a gui. On Tuesday, August 9, 2016 at 3:07:10 PM UTC-7, Anushri Mishra wrote: > > hi, > > are there any suggestions for ansible-gui? I know there is ansible tower > but I dont want to pay. > > I was looking for

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

2016-08-09 Thread Peter Sprygada
Currently that is the case. The asa_* modules were added last month and will be part of the Ansible 2.2 release later this year. On Tue, Aug 9, 2016 at 11:21 AM, Tony R wrote: > Yes I see the instructions on how to install. I've done the install of > the latest release from

[ansible-project] Re: win_feature failing

2016-08-09 Thread Justin Dugan
Yes, it's working in 2012,but not 2008r2. -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this

Re: [ansible-project] Re: Matt Davis on PowerScripting Podcast

2016-08-09 Thread Trond Hindenes
Sweet! Regarding the point about Bash on Windows, Ansible now works nicely. I use it _all_ the time :-) On Friday, August 5, 2016 at 8:10:01 PM UTC+2, Greg DeKoenigsberg wrote: > > nice job, Matt! > On Aug 5, 2016 1:42 PM, "Matt Davis" > wrote: > >> Thanks, it was a pretty

[ansible-project] Re: azure_rm_deployment error ansible 2.1.1.0 __init__() takes exactly 1 argument (2 given)

2016-08-09 Thread Trond Hindenes
Could you please share an example playbook? We're using this module without issues. On Tuesday, August 9, 2016 at 3:08:15 PM UTC+2, M Ghaleb wrote: > > Hi All, > > I'm trying to deploy an Azure template using the azure_rm_deployment > module. > > ubuntu 14.04 TLS > ansible 2.1.1.0 > azure

[ansible-project] Re: win_feature failing

2016-08-09 Thread Trond Hindenes
Hi Justin, Just to confirm: Its working on server 2012 but not on 208R2 (regardless of PS version), is that right? I have to admit I use 2012R2 for testing, so there might be bugs like this slipping thru. Please confirm, and I'll try and have a look at this asap. On Tuesday, August 9, 2016 at

[ansible-project] Re: Ansible GUI

2016-08-09 Thread Trond Hindenes
tower is the new name for awx. There are rumors it will be open source at some point. On Wednesday, August 10, 2016 at 12:07:10 AM UTC+2, Anushri Mishra wrote: > > hi, > > are there any suggestions for ansible-gui? I know there is ansible tower > but I dont want to pay. > > I was looking for

[ansible-project] Re: Windows and Groups

2016-08-09 Thread Trond Hindenes
Hi Allen, Windows is only meant as an example of a group. Nothing is stopping you from organizing your inventory like this, for example: [clients] client1 [servers] server1 However, since Windows nodes require a winrm connection, you need to specify that for all windows nodes so that Ansible

[ansible-project] Windows and Groups

2016-08-09 Thread Allen Fisher
Hello-- Fairly new to Ansible and am starting to really dig into what I can do with it. I got my first server up and going using http://docs.ansible.com/ansible/intro_windows.html, but am concerned that I only seem to be able to connect to a system via WinRM if it is a member of an inventory

[ansible-project] Ansible execution workflow

2016-08-09 Thread knowshan
I was wondering if there is any documentation available that describes how Ansible works or provides any architecture diagram. I am assuming general steps in Ansible execution are: * Establish SSH connection with a remote host * Copy Ansible modules, roles and playbooks to the remote host *

[ansible-project] Re: Copy Module doesnt override destination file

2016-08-09 Thread Anushri Mishra
k got it.thx. On Monday, August 8, 2016 at 12:56:44 PM UTC-4, Anushri Mishra wrote: > > hi, > > so this is what I have in my yml file: > > - name: Copy War File > > copy: src=externaluserwebapi.war dest=/usr/share/tomcat7/webapps > > become: True > > become_method: sudo > > and this

[ansible-project] Ansible GUI

2016-08-09 Thread Anushri Mishra
hi, are there any suggestions for ansible-gui? I know there is ansible tower but I dont want to pay. I was looking for ansibleworks awx but couldnt find any download link or any thing. Rundeck seems to be the only option so far. Any other gui available ? Please advice. -- You received

[ansible-project] Re: Connection issues to Windows Server - Host not Reachable

2016-08-09 Thread Anfield
I agree!. I am new to Ansible.. I just have two virtual machines on my desktop and all that I have configured is listed below - -Configured windows.yml - with the following - ansible_ssh_user: User ansible_ssh_pass: Pass ansible_ssh_port: 5986 ansible_connection: winrm , added the windows host

Re: [ansible-project] Re: Copy Module doesnt override destination file

2016-08-09 Thread Kai Stian Olstad
On 09. aug. 2016 23:34, Anushri Mishra wrote: Thanks Kai.Yes,the files are identical.But there should be some way to overwrite it.Is there any way? No, this is part of Ansibles idempontecy[1], it does not do any changes if the files is identical. Why do you want to overwrite the file if it's

[ansible-project] Ansible sunchronize module.

2016-08-09 Thread Amrit Bhandari
Hello everyone, I am using Ansible 2.1.0.0 in a FEDORA environment.I have a playbook which is supposed to run a Python script.The Python script generates directories and subdirectories in /tmp/data/ of the remote machines.What need to do now is : 1)tar the directory in the remote

[ansible-project] Re: Copy Module doesnt override destination file

2016-08-09 Thread Anushri Mishra
Thanks Kai.Yes,the files are identical.But there should be some way to overwrite it.Is there any way? On Monday, August 8, 2016 at 12:56:44 PM UTC-4, Anushri Mishra wrote: > > hi, > > so this is what I have in my yml file: > > - name: Copy War File > > copy: src=externaluserwebapi.war

[ansible-project] Re: winrm and https

2016-08-09 Thread Anjana Raghavendra P
Hi, I am also getting the same error when i tried to run a play with *host: local *and a task with *delegate_to: windows *in ubuntu 14.04. But the same task works if I specify the *host: windows *at play level. Can anyone help me in this? On Friday, June 24, 2016 at 8:00:31 AM UTC-5,

[ansible-project] Re: Connection issues to Windows Server - Host not Reachable

2016-08-09 Thread Justin Dugan
It shouldn't be using ssh for windows. Here are some other entries I am using: ansible_winrm_transport: kerberos ansible_winrm_kerberos_delegation: true I'm not familiar with you configuration, so I'm not sure if these apply. On Tuesday, August 9, 2016 at 4:31:48 PM UTC-4, Anfield wrote: > >

[ansible-project] Quotes and Jinja

2016-08-09 Thread Josh Smift
We have a task like - name: install thing and dependencies yum: name={{ item }} state=present with_items: - thing-"{{ thing_version }}" - dep1 - dep2 - dep3 where thing_version is sometimes 1.0 (say), and sometimes something else. This worked fine in Ansible

[ansible-project] Re: Connection issues to Windows Server - Host not Reachable

2016-08-09 Thread Anfield
Thanks. I think I have those configured though ansible_ssh_user: User ansible_ssh_pass: Pass ansible_ssh_port: 5986 ansible_connection: winrm -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Connection issues to Windows Server - Host not Reachable

2016-08-09 Thread Anfield
Trying to connect from Ansible server to windows host and getting connection errors [root@localhost ansible]# ansible -i hosts -m ping all 10.10.128.0 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true -Configured windows.yml,

[ansible-project] Connecting to Windows Host Failing - (Fails Ansible Ping)

2016-08-09 Thread Anfield
Connecting from ansible to windows hosts I am getting the following error when I run this command ansible -i hosts -m ping all ERROR "msg": "Failed to connect to the host via ssh.", "unreachable": true The hosts can ping each other and the windows machine has been added in the ansible

[ansible-project] Re: win_feature failing

2016-08-09 Thread Justin Dugan
Here is the playbook entry: - name: Install IIS Windows 2007 win_feature: name: "AS-AppServer-Ext,AS-MSMQ-Activation,AS-TCP-Activation,AS-Named-Pipes,FS-FileServer,Web-St atic-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Redirect,Web-Asp-Net,Web-Net-

[ansible-project] How to set `ssh_user` and `ssh_key_file` in Ansible 2 Python API?

2016-08-09 Thread Neil Hooey
How do you set `ssh_user` and `ssh_key_file` when making a connection with the Ansible 2 Python API? Adding `user`, `ssh_user` or `remote_user` to the `options` variable in the code on the Ansible 2 Python API documentation page all fail.

[ansible-project] win_feature failing

2016-08-09 Thread Justin Dugan
I am trying to use win_feature on a Windows 2008 R2 Server and reviving the following error: FAILED! => {"changed": false, "failed": true, "msg": "Method invocation failed because [System.Management.Automation.PSCustomObject] doesn't contain a method named 'Remove'."} The server is running

Re: [ansible-project] anyway to run different tasks with different interpreters (ex: yum using py2.6, get_url using py2.7)

2016-08-09 Thread Brian Coca
it is also a host variable, so it is settable as a normal var in play, just try setting it at the tasks you need - yum: ... vars: ansible_python_interpreter: /usr/bin/python2212 -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups

[ansible-project] Installing from tarball to Mac

2016-08-09 Thread John Oliver
I'd like get ansible installed on Macs that are not connected to the Internet. I've downloaded the tarball and am trying to install it on one that is connected to the Internet to find everything I need, but am getting a raft of errors. I need to be able to find and install all dependencies

[ansible-project] Time frame for end of support for Python-2.4 and Python-2.5 on managed machines

2016-08-09 Thread Toshio Kuratomi
All things must come to an end. In the case of Ansible's support for managing hosts whose Python version is 2.4 or 2.5, that ending is within sight. Our plan is for the next 2.x release of Ansible after March of 2017 to require Python-2.6 or greater on the managed machines; dropping support for

[ansible-project] Re: Ansible 2.0.0.2 main.yml fails with "ERROR! no action detected in task"

2016-08-09 Thread Saurabh Joshi
Hi Daniel, Did you come across any solution to this issue? I am stuck with same situation where I have an - name: Invoking administrator playbook. include: administrator.yml and administrator.yml has - hosts: myHost roles: - { role: my_modules } tasks: - name: "Gather

[ansible-project] anyway to run different tasks with different interpreters (ex: yum using py2.6, get_url using py2.7)

2016-08-09 Thread Sylvain Mougenot
Hello, I've to maintain some node running on Centos 6 with Python 2.6 as default python. My problem is due to SSL download using gt_url that require Python 2.7.9+ to work (related to SNI trouble). Aim : * run all yum tasks with default Python (2.6, it's a system requirement) * run all get_url

[ansible-project] apt module fails with serial setting greater than 1

2016-08-09 Thread Max Gonzih
Hello everyone, I'm just starting to use ansible and encountered weird issue. apt module on target machines that run ubuntu 16.04 (ec2 image ami-1967056a) fails with locking issues (11: Resource temporarily unavailable). But when I set serial: 1 everything seems to be fine. I'm not sure where

[ansible-project] Best way to execute "tests" with Ansible and report meaning full error messages

2016-08-09 Thread Damien Garros
Hi I'm trying to see if I can use Ansible to run some tests on network devices. My goal is to execute a lot of "tests", similar to unit tests in software dev, and report what passed and what failed at the end. Right now I'm facing 2 issues that are making it complicated and I would be

[ansible-project] Please help with these error

2016-08-09 Thread Bob Benson
agrant@mgmt:/vagrant$ ansible-playbook e45-ssh-addkey.yml -v Using /vagrant/ansible.cfg as config file ERROR! Unexpected Exception: dictionary update sequence element #0 has length 3; 2 is required the full traceback was: Traceback (most recent call last): File

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

2016-08-09 Thread Tony R
Yes I see the instructions on how to install. I've done the install of the latest release from Apt a few times. And I've done an install of the latest devel once. So what is everyone saying that asa_command is only supported with the latest devel? On Aug 9, 2016 10:43 AM, "jean-christophe

Re: [ansible-project] trouble with shell egrep escaping chars

2016-08-09 Thread Kai
G'day! On 03-08-16 12:18, Kai Stian Olstad wrote: > On 03.08.2016 10:39, Kai wrote: >> I cannot get the following line to work: >> >> shell: "{{java_home}}/bin/java -version 2>&1 | grep 'java version' | >> egrep '{{ '1\.[789]' | regex_escape() }}'" >> >> Obviously this line already went through

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

2016-08-09 Thread jean-christophe manciot
If you want the very latest builds (stable & RC release candidates), you can use my own PPA (only for Ubuntu 16.04) which also distributes many other fresh packages. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

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

2016-08-09 Thread jean-christophe manciot
> > To install from official PPA for > Ubuntu: > http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu > Another way is through pip: sudo pip install ansible -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] azure_rm_deployment error ansible 2.1.1.0 __init__() takes exactly 1 argument (2 given)

2016-08-09 Thread M Ghaleb
Hi All, I'm trying to deploy an Azure template using the azure_rm_deployment module. ubuntu 14.04 TLS ansible 2.1.1.0 azure 2.0.0rc5 I get the below error: TASK [ansible-azure-provisioner : Deploying your Azure Jumphox] *** task path:

[ansible-project] azure_rm_deployment - Expecting azure.mgmt.compute.__version__ to be >= 2016-03-30

2016-08-09 Thread M Ghaleb
Hi All, I'm trying to deploy an Azure template using the azure_rm_deployment module. ubuntu 14.04 TLS ansible 2.1.1.0 azure 2.0.0rc5 working in Mac and on CentOS not Ubuntu. I get the below error: "module_name": "azure_rm_deployment"}, "msg": "Expecting azure.mgmt.compute.__version__ to be

[ansible-project] Python Error when running Azure_rm_deployment module.

2016-08-09 Thread M Ghaleb
Dear All, I'm trying to deploy an Azure Template using Ansible, however I'm getting the below warning: I am using Ubuntu 14.04 TLS, Ansible 2.1.0.0 and Azure 2.0.0rc5 ERROR: "msg": "Expecting azure.mgmt.compute.__version__ to be >= 2016-03-30. Found version 0.30.0rc5 Do you have Azure >=

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

2016-08-09 Thread Tony R
You're right, I'm not running from devel. I'm running Latest Release from Apt. On Aug 9, 2016 7:50 AM, "Peter Sprygada" wrote: > can you paste a copy of ansible --version into this thread? I suspect you > are not running the latest version from devel > > On Mon, Aug 8,

[ansible-project] looping within loops

2016-08-09 Thread Dick Davies
I've got a bunch of user groups to create, each users information is a dict. Since each group maps to a team, I want to control access on a per-team level. so the natural 'shape' for this data is eg. users: dbas: - user: bobby_tables gecos: Bob Tables - user: joinmaster

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

2016-08-09 Thread Peter Sprygada
can you paste a copy of ansible --version into this thread? I suspect you are not running the latest version from devel On Mon, Aug 8, 2016 at 12:35 PM, Tony R wrote: > OK, any other ideas? I cloned the repository. I edited ansible.cfg. I > also tried the --module-path

Re: [ansible-project] Re: Ansible SSH as one user and Sudo as another

2016-08-09 Thread Kai Stian Olstad
On 05. aug. 2016 23:21, mahendravarma.yadav...@gmail.com wrote: Hi guys need some help here, my config is little different , foo ALL=/bin/su - root Since you are only permitted to run "/bin/su - root" with sudo you are out of luck if you can't change it, Ansible need to run different

Re: [ansible-project] scp files with copy

2016-08-09 Thread Kai Stian Olstad
On 09. aug. 2016 02:36, Eric Marquez wrote: I'm attempting to copy a large file to a remote SCP server(Cisco Nexus Switch). I verified I can copy it using SCP but I have a large number of server to copy the files too. The server also happens to be a switch that accepts will receive