[ansible-project] Ansible: How to use a Variable as an Index?

2015-08-11 Thread lilferna
Hi Ansible Users, I am trying to use a variable passed in via --extra-vars to index into 'nics' which is defined in nics.yml. It works fine in the when clause, but not in the set_fact. Any suggestions? Thanks, Lilian host# cat nics.yml --- nics: - {type: 'static', ip: '10.3.5.4'} - {type:

Re: [ansible-project] Ansible: How to use a Variable as an Index?

2015-08-11 Thread Timothy Appnel
Don't use nested mustaches. In other words try this: cvmip: {{ nics[num].ip }} [image: photo] Timothy Appnel Senior Solutions Architect Ansible, Inc. *•* www.ansible.com On Tue, Aug 11, 2015 at 5:19 PM, lilfe...@cisco.com wrote: Hi Ansible Users, I am trying to use a variable passed in

[ansible-project] module s3 module not found

2015-08-11 Thread Igal Dahan
Hi im trying to use S3 module to copy from S3 to windows machine but i got strange error : module s3 not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git submodule update --init --recursive' to correct this problem. looks like its not

[ansible-project] is S3 module works on windows servers?

2015-08-11 Thread Igal Dahan
Hi Is S3 module can work on Windows ? means can i get file from S3 into windows ? Igal -- 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] Re: Ansible failing on Amazon Linux AMI 2015.03

2015-08-11 Thread Co S
Thanks Mark. In fact it doesn't come with epel-release package installed by default (amzn-ami-hvm-2015.03.0.x86_64-gp2 (ami-a10897d6)): $ yum repolist all Loaded plugins: priorities, update-motd, upgrade-helper amzn-main/latest

[ansible-project] VariableManager

2015-08-11 Thread Victor Volle
Hi! In http://www.slideshare.net/jimi-c/v2-and-beyond?related=1 and http://www.slideshare.net/jimi-c/whats-new-in-v2-ansiblefest-london-2015 a new improved Variable Management is hinted at but not much more. Is there anything in the docs, some tutorial _what_ the exact changes are? And how I

[ansible-project] Re: Ansible failing on Amazon Linux AMI 2015.03

2015-08-11 Thread Mark Phillips
Because you don't need it Constantin. Amazon Linux already has EPEL plumbed in, it's just not enabled. See... [ec2-user@ip-172-31-33-248 ~]$ *yum --enablerepo=epel info ansible* Loaded plugins: priorities, update-motd, upgrade-helper epel/x86_64/metalink

Re: [ansible-project] Re: Not forking parrallel tasks?

2015-08-11 Thread Silvio Tomatis
Removing the connections as I mentioned in the last message solved the problem only temporarily (and to be honest I don't know how). When the issue resurfaced, I dug a little more and ended up on this thread: https://groups.google.com/forum/#!msg/ansible-project/8p3XWlo83ho/KlIqch_UxTEJ To

[ansible-project] Re: Ansible failing on Amazon Linux AMI 2015.03

2015-08-11 Thread Co S
You are right Mark. It's there. Have you tried to run ansible form command line? I still get the same error. -- 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] Ansible and rhn_register

2015-08-11 Thread Néstor Flórez
I am trying my first ansible playbook and I want to register to red hat and do a yum update and then unregister using the rhn_register modules The first 2 tasks are working but the last task to unregister fails: PLAY [linux]

[ansible-project] Re: Ansible 2.0 -- shade is required for this module

2015-08-11 Thread Guido García
Hi Chris. Same here. Did you manage to fix this issue? Thanks. El miércoles, 29 de julio de 2015, 21:26:48 (UTC+2), Chris Gordon escribió: I'm trying to use the os_server module in Ansible 2.0 and get the following error: fatal: [jump]: FAILED! = {changed: false, failed: true, msg: shade

Re: [ansible-project] is S3 module works on windows servers?

2015-08-11 Thread Chris Church
Hi Igal, Only the win_* modules written in PowerShell are supported on Windows at this time. You may want to take a look at https://aws.amazon.com/powershell/ -- you can run any PowerShell script via the script module or simple commands via the raw module. On Tue, Aug 11, 2015 at 4:52 AM, Igal

[ansible-project] Ansible hangs when running remote su command via sshpass

2015-08-11 Thread firxiao zhang
HI: Ansible Version: [vagrant@master ansible]$ ansible --version ansible 1.9.2 configured module search path = None Environment: client is same as master. [vagrant@master ansible]$ cat /etc/redhat-release CentOS release 6.6 (Final) [vagrant@master ansible]$ locale

Re: [ansible-project] Re: setting up new control from source - getting 'FAILED = winrm is not installed' targeting existing Win clients

2015-08-11 Thread leo
What version of ansible are you using? I'm running 1.9.2 stable, pywinrm installed, same error. On Thursday, 6 November 2014 00:25:33 UTC, John Jelinek wrote: I upgraded to the dev branch of ansible and it works now. On Thursday, August 28, 2014 4:26:02 PM UTC-5, Damon Overboe wrote: Right

[ansible-project] Role Specialisation

2015-08-11 Thread Wesley
Hi, I want to extract some common stuff from a role that needs to be invoked as part of that role. # BACKGROUND I'm just getting started with ansible but I'm having difficulty. I've got a number of applications which have their own config file, their own home user and their own user. All

Re: [ansible-project] Ansible and rhn_register

2015-08-11 Thread Marcus Franke
Hi, did you check for the error message from the failed task? This looks like an error message from you satellite server you were trying to unregister from and not like an ansible error. Register, update, unregister sounds like you are trying to save licenses for your servers and the error

[ansible-project] Tuning the External Inventory Script

2015-08-11 Thread Andy Baker
This passage: http://docs.ansible.com/ansible/developing_inventory.html#tuning-the-external-inventory-script seems to say you have two options: 1. Return a list of groups when called with --list and then return all the vars for a single group when called with --host 2. Return all groups and

[ansible-project] Re: Ansible and rhn_register

2015-08-11 Thread Néstor Flórez
Go it to work!!! The register portion was working and the register portion was giving errors. then all of a sudden the register part started to failed with error line:9 of rhnplugin.conf Some how my /etc/yum/pluginconf.d/rhnplugin.conf had syntax error but other linux rhel server did not have

[ansible-project] Ansible 1.9.3 rc1 is now available for testing

2015-08-11 Thread James Cammarata
Hi all, we've just tagged the rc1 release for 1.9.3. This includes many TLS and SNI fixes, as well as several docker fixes and improvements to Vault (256-bit AES keys instead of 128). To test from source, simply clone the git repository (if you haven't already) and do the following: $ git

Re: [ansible-project] Ansible and rhn_register

2015-08-11 Thread Néstor
That is the idea, I have 2 licenses but I only keep my live server register at all time. I have a backup and desktop server. YEs, I want to register and unregister the backup and the desktop just to get the latest updates but the desktop is my test/play desktop server I was trying that on only

[ansible-project] Error checking for daemon/service restarts

2015-08-11 Thread David Marshall
Hi, I want to make sure I am going about this in the cleanest and easiest way possible. Maybe someone else has done this before or has some better ideas for me :)? When a service is restarted i.e. service networking restart, I want to check for stderr and stdout to make sure there were no

Re: [ansible-project] Ansible: How to use a Variable as an Index?

2015-08-11 Thread Josh Smift
TA Don't use nested mustaches. This should probably be a FAQ. :^) FWIW, what helped me understand this is that the mustaches aren't saying here's a variable (in which case you might think, incorrectly, that you need to put them around all variables all the time everywhere), but rather start

Re: [ansible-project] Ansible: How to use a Variable as an Index?

2015-08-11 Thread Timothy Appnel
That is a good way of thinking of explaining it in the context of Ansible -- start Jinja, stop Jinja. At the same time, how would you have represented this in a Jinja template? Jinja doesn't allow for nested mustaches in any context that I am aware of. I'm sure a patch to the docs to make light

Re: [ansible-project] Gitter chat/channel for Ansible?

2015-08-11 Thread Ben Cohen
As a lurker whose email clients have mailed mailing lists unbearable -- id love to see this! On Monday, August 10, 2015, Hristo Stoyanov hr.stoya...@gmail.com wrote: Hi, I tried the IRC chat for Ansible and it is painful (especially from mobile device). Since Ansible is hosted on Github

Re: [ansible-project] Tuning the External Inventory Script

2015-08-11 Thread Timothy Appnel
Yes you have. In option #1, when --host is call you only return that one host and it's host variables, if any. (You said a single group.) You don't return any groups or group variables. The dynamic inventory plugin API is a coarse-grained one that slurps in everything it can get from the