[ansible-project] Re: help: install/upgrade a list of RPMs

2015-12-15 Thread 张斌
Thanks Calum. I already went through the docs, and googled. I know how to loop with items and install with yum. But i want to a list of RPMs to be check and install/upgrade, not sure if there is a way to do so. how to loop with_items: for the three steps ? Perhaps something like the

Re: [ansible-project] Gathering facts on Hosts with many many interfaces

2015-12-15 Thread Brian Coca
not yet, but it is comming https://github.com/ansible/ansible/pull/13443 On Tue, Dec 15, 2015 at 10:31 AM, Till Klocke wrote: > Hi everyone, > > I am using Ansible for quite some time now and I like it very much. But now > I ran into a Problem I can't seem to solve by

[ansible-project] Re: nested variables - again

2015-12-15 Thread mtovey
On Tuesday, December 15, 2015 at 7:01:04 AM UTC-8, Mike Biancaniello wrote: > > Will this do what you need? using structure[list] instead of trying to > nest. > > --- > - name: stuff > connection: local > gather_facts: no > hosts: localhost > > vars: > list: list1 > structure:

[ansible-project] Re: ssh connection closed waiting for a privilege escalation password prompt

2015-12-15 Thread Simon Pierre Desrosiers
Hello all, I have the exact same problem. In a brand new directory, with new ansible.cfg file and hosts file the following playbook fails when I ask the password to do sudo, but only with the file module, the command module works just fine. --- - name: yaml de test de fail. hosts:

[ansible-project] Re: help: install/upgrade a list of RPMs

2015-12-15 Thread cmacrae
Ah okay, cool :) Hmm, well, does my solution above still not stand? I mean, with your above pseudo code, the second task will install the package if it's not present, in doing so, it will install the latest package. The third task will just ensure any packages in the list installed are at

[ansible-project] Gathering facts on Hosts with many many interfaces

2015-12-15 Thread Till Klocke
Hi everyone, I am using Ansible for quite some time now and I like it very much. But now I ran into a Problem I can't seem to solve by myself. In my current company we need to setup L2TP tunnels between WiFi Hotspts and out servers to tunnel traffic through them (to circumvent stupid german

[ansible-project] Re: help: install/upgrade a list of RPMs

2015-12-15 Thread Evgen Morokin
Hi, example from previous reply will do all stages for you: - name: Ensure packages are installed and the latest available version yum: name="{{ item }}" state=latest with_items: - some_package - some_other_package - a_third_package This will check package presence, then install

[ansible-project] Setting Log Path From Within Playbook

2015-12-15 Thread Kincaid Savoie
Is there any way to configure logging from inside an Ansible playbook, or on a per-playbook basis? For example, could I set backup.yml to log its results to backup.log, while update.yml outputs its results to update.log? I've looked around and found an environment variable and a configuration

[ansible-project] Re: help: install/upgrade a list of RPMs

2015-12-15 Thread Vince Skahan
Perhaps you could do a little test to verify the original answer you got worked (or did not). Install an old rpm manually Install a current rpm manually Write a playbook using ensure=latest referencing both You should see it updated the old one to current, and left the already current one alone

[ansible-project] Deploy Subnets into Different availability zones using Ansible.

2015-12-15 Thread Josh Smift
B> I am Working on putting subnets into different availability zones with B> the help of ansible. I want to put subnet1 into us-east-1a, then B> subnet2 into us-east-1b and so on. Currently I can only be able to put B> servers onto us-east-1a only. Here is the ansible scripts. What happens when

[ansible-project] Deploy Subnets into Different availability zones using Ansible.

2015-12-15 Thread Bhotu
I am Working on putting subnets into different availability zones with the help of ansible. I want to put subnet1 into us-east-1a, then subnet2 into us-east-1b and so on. Currently I can only be able to put servers onto us-east-1a only. Here is the ansible scripts. --- - name: Create AWS

Re: [ansible-project] Deploy Subnets into Different availability zones using Ansible.

2015-12-15 Thread Bhotu
Hi I can only find all the subnets in the same availability zones which is us-east-1a only. I want each of my subnets into different availability zones in AWS. On Tuesday, 15 December 2015 10:46:43 UTC-8, Josh Smift wrote: > > B> I am Working on putting subnets into different availability zones

[ansible-project] Re: How to match regex tab?

2015-12-15 Thread ju
Hi Tim, You are right, it works if I don't use with_items (something wrong with my following statement). Anyway, the problem now is that rdblacklist=nouveau nouveau.modeset=0 is inserted to the end of file, not the kernel end of line. Is there any way to insert parameters to end of line, or it

[ansible-project] local hosts entry override ansible_domain and ansible_fqdn

2015-12-15 Thread Julien Tognazzi
Hi all, Is it the expected behavior that the value of ansible_domain and ansible_fqdn changes if an entry in /etc/hosts match the server ip ? With no entry in /etc/hosts $ ansible -i test localhost -m setup | grep "domain|fqdn" "ansible_domain": "mydomain.ch", "ansible_fqdn":

[ansible-project] Re: Create GCE instances msg: Unexpected response: {}

2015-12-15 Thread dean
Has anyone resolved this issue? I am experiencing the same thing but cannot find the cause of the error. On Tuesday, October 13, 2015 at 12:02:34 PM UTC-7, Anatoliy Kovalenko wrote: > > Any ideas or help would be very much appreciated! can't resolve it by > ourselves > > On Friday, October 9,

[ansible-project] Issue creating instances on GCE

2015-12-15 Thread dean
I am testing the creation of instances on GCE but cannot get anything to work. This is a brand new install of Ansible. Details of the playbook and error are below. Thanks in advance for the help. $ ansible-playbook test.yml -vv ———ERROR PLAY [deploy GCE instances]

[ansible-project] Re: [ansible-devel] New 'bigip_user' module -- testers needed

2015-12-15 Thread Tim
Awesome, I'd be happy to discuss. The modules I pointed to at the separate github spot came in to being only over the last year or so. I didn't have a place to put them publicly until the f5networks github account came about. Hopefully, in time, they will find their way into the upstream product

[ansible-project] Re: [ansible-devel] New 'bigip_user' module -- testers needed

2015-12-15 Thread Matt Hite
This is fantastic... no idea F5 had an internal Ansible effort going! We should discuss how best to reconcile the modules that have been shipping with Ansible vs. the ones you've been working on @ F5. My only "concerns" would be that we: - maintain idempotent behavior when possible - support

[ansible-project] Where can I find consistent version dependent documentation?

2015-12-15 Thread Fff Fff
After trying to learn Ansible for the past few days the most glaring problem I have run into is documentation inconsistency. Ansible has evolved rapidly and all the documentation says "since v1.x you can now do this and this" sort of thing. Also some newer things are not backwards compatible

[ansible-project] Re: local hosts entry override ansible_domain and ansible_fqdn

2015-12-15 Thread Fff Fff
Are you sure you have fqdn set up properly? It's not just /etc/hosts that needs to be setup for properly configued fqdn. It is a bit different between different Linux flavors and even version of flavors as well. For example, Ubuntu/Debian and CentOS 7 also make use of /etc/ hostname whereas

[ansible-project] Extends template with ansible

2015-12-15 Thread Christophe Biguereau
Hi all, I try to simplify my Nginx template by using extends template. To do that, I follow the Jinja2 doc I create a child template: *{% extends "nginx_servers.j2" %}{% block listen %}

[ansible-project] Re: help: install/upgrade a list of RPMs

2015-12-15 Thread cmacrae
Hey, I'd recommend you read fully through the 'Getting Started ' guide, and carry on reading through the other docs - reading these and implementing/playing with what they teach is the quickest, most efficient way to learn. That

Re: [ansible-project] galaxy 2.0 import question

2015-12-15 Thread Greg DeKoenigsberg
On Tue, Dec 15, 2015 at 1:10 AM, Tim Rupp wrote: > Hey folks, > > I was testing the new galaxy 2.0 import process from the p.o.v. of a github > organization and had a question. > > Right now it imports as "MyOrganization.some-twisted-rolename" > > I was curious if there

[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-15 Thread David Shrewsbury
Seems to have been a glance client bug: https://bugs.launchpad.net/python-glanceclient/+bug/1526254 You can try 'pip install -U requests' which may work around the issue for you until a new glanceclient is released. -Dave On Monday, December 14, 2015 at 3:10:57 PM UTC-5, Hugh Ma wrote: > >

[ansible-project] Re: nested variables - again

2015-12-15 Thread Mike Biancaniello
Will this do what you need? using structure[list] instead of trying to nest. --- - name: stuff connection: local gather_facts: no hosts: localhost vars: list: list1 structure: list1: - {var1: "val1", var2: "val2", var3: "val3"} list2: - {var1:

[ansible-project] Re: local hosts entry override ansible_domain and ansible_fqdn

2015-12-15 Thread Julien Tognazzi
I justed tested with ansible 2 RC2 and I have the same behavior. Maybe I should add that the server is a CentOS 6 box. On Tuesday, December 15, 2015 at 1:02:56 PM UTC+1, Julien Tognazzi wrote: > > Hi all, > > Is it the expected behavior that the value of ansible_domain and ansible_fqdn >

Re: [ansible-project] Re: local hosts entry override ansible_domain and ansible_fqdn

2015-12-15 Thread Brian Coca
this is how the underlying python functions and system calls work. On Tue, Dec 15, 2015 at 10:07 AM, Julien Tognazzi wrote: > I justed tested with ansible 2 RC2 and I have the same behavior. > > Maybe I should add that the server is a CentOS 6 box. > > On Tuesday,

[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-15 Thread Hugh Ma
Perfect thanks. -- 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 group, send email to

[ansible-project] Re: New 'bigip_user' module -- testers needed

2015-12-15 Thread 'jhawkesworth' via Ansible Project
Jumping on your thread here slightly, but you asked for suggestions Would definitely be interested in a module that would let us automate updating iRules. I've not dug into this as much as I would like yet so maybe there's already a way to do this (perhaps templating then using URI to talk

[ansible-project] Re: How to use external variable inside an ansible inventory file.

2015-12-15 Thread anoop . kolari
Any suggestion guys?? On Tuesday, December 15, 2015 at 1:00:25 PM UTC+5:30, anoop@tarams.com wrote: > > Hi, > > I have an inventory file 'inventory/localhost' and contains; > [localhost] > "{{MYSITE_NAME}}-local.com"ansible_ssh_port= > > > Lets say 'MYSITE_NAME' is a variable