Re: [ansible-project] Accessing server inventory list while deploying to clients

2015-04-15 Thread Brian Coca
the groups variable is a dictionary with the groups in which the keys are the list of servers that are part of it, so for example groups['all'] has a list of all the servers, you just need groups[my server group] On Tue, Apr 14, 2015 at 7:53 PM, ajres a...@couchbase.com wrote: I have a playbook

[ansible-project] Retrieving list of available VPCs and available Subnets via AWS dynamic inventory

2015-04-15 Thread Rihards
I have VPC with number of subnets in it which (vpc and subnets) are tagged in a particular way what would give me a way to retrieve a particular subnet that I want to use to launch ec2 instance (using ansible ec2 module). How do I do that? Should I record subnet and vpc ids in some way in file

Re: [ansible-project] Orchestration between OS Provisioning and Configuration Management (Barrier Behavior between Cobbler and Ansible)

2015-04-15 Thread Hrishikesh Trivedi
Hi, I am also looking for a similar solution. I have cobbler server setup that takes care of OS + Network Config. My cobbler server is now also my ansible control machine. So I have Cobbler + Ansible on the same server. From the 3 options mentioned by you, A is not a choice for me and C seems

[ansible-project] Accessing server inventory list while deploying to clients

2015-04-15 Thread ajres
I have a playbook that configures multiple client machines. Each client needs to be configured with a unique server IP address from the servers in a cluster. The mapping from client to server is one-to-one, all the hosts are running in ec2, and the inventory is dynamic. Is there a way that I

[ansible-project] Re: Ansible openstack deploy fails with mysql error

2015-04-15 Thread Phuc Nguyen
i have prplem, when i login openstck dashboad , i have errror on keystone.log : WARNING keystone.common.wsgi [-] Authorization failed. The request you have made requires authentication. from 127.0.0.1 . can you help me fix error. Vào 04:50:58 UTC+7 Thứ Ba, ngày 30 tháng 7 năm 2013, kesten

[ansible-project] Re: BDD Testing For Ansible

2015-04-15 Thread Christian A DeKonink
I use serverspec for TDD for my Infrastructure. You don't need to install anything on the client. All of my clients run cents 6 minimal install. I run server spec from an ops server, on that server I installed ruby. First I create all of the tests, then I create the plays to make the tests

[ansible-project] Managing users playbook -- could use a clever idea

2015-04-15 Thread Rishi
I have a role that manages my users on my boxes, problem I am having is I have two tasks that modify the groups properties of users. This is obviously stupid since they keep changing each other, giving my false change notifications when I run ansible. I have separate global/group/host vars

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-15 Thread Brian Coca
git checkout On Wed, Apr 15, 2015 at 6:18 AM, P p@cmcmarkets.com wrote: On Wednesday, April 15, 2015 at 11:17:43 AM UTC+1, P wrote: On Wednesday, April 8, 2015 at 5:03:43 PM UTC+1, Brian Coca wrote: The current git checkout, its easy to use in parallel of any other version and only for

Re: [ansible-project] Can I get a list of existing ELBs in a VPC ?

2015-04-15 Thread Alex Leonhardt
Hi, Since there's no reply - possible to get someone at ansible to check / comment ? It seems similar to a question regarding VPCs that was recently asked and also has no answers yet? In fact, when creating the ELBs, can I keep a local list of them thats being produced by the playbook, if I

Re: [ansible-project] Use rax module to create a server with extra_create_args / build_config

2015-04-15 Thread Matt Martz
Per that article, it looks like you need to add metadata and not options to extra_create_args. extra_create_args are passed to the novaclient create method. Something like: - name: 1 GB General Purpose v1 local_action: module: rax [snip] meta:

Re: [ansible-project] Use rax module to create a server with extra_create_args / build_config

2015-04-15 Thread Dan Rough
Thanks both - I had thought of using the meta attribute instead but hadn’t got round to testing it. Good to know that’s where I should be heading. — Sent from Mailbox On Wed, Apr 15, 2015 at 5:44 PM, Matt Martz m...@sivel.net wrote: Per that article, it looks like you need to add metadata

Re: [ansible-project] Use rax module to create a server with extra_create_args / build_config

2015-04-15 Thread Philip Schwartz
Matt is correct with his comment. As long as you set the var in the meta section of the call to the Rax module it will be set in the request to the Cloud Servers API to create the instance. -- You received this message because you are subscribed to the Google Groups Ansible Project group. To

[ansible-project] Ansible 1.9.1 rc2 is now available for testing

2015-04-15 Thread James Cammarata
Hi all, we've just tagged the rc2 release for 1.9.1 To test from source, simply clone the git repository (if you haven't already) and do the following: $ git checkout v1.9.1-0.2.rc2 $ git submodule update $ . hacking/env-setup After which time you can run ansible and ansible-playbook like

[ansible-project] How to get vars to evaluate inside json strings?

2015-04-15 Thread David Reagan
See http://pastebin.com/QWSu641w for the testing playbook I've been using. Basically, I have several vars that I need to place inside a json string. The output should look something like: {indices: testlogstash-2014.04.14,ignore_unavailable: true,include_global_state: false,partial: true}

[ansible-project] Windows Hosts Setup

2015-04-15 Thread Ravi Kanth
Dear All, I am new to ansible and i have installed latest version 2.1.1 in our environment. i was trying to add windows hosts to our inventory and i am following the ansible documentation http://docs.ansible.com/intro_windows.html; however i have small doubts in this. In the document it was

[ansible-project] Re: Problem with variables structure (loop with_items)

2015-04-15 Thread kzabkowski
Check with_subelements loop. This is solution to your problem. Krzysztof Ząbkowski http://docs.ansible.com/playbooks_loops.html#looping-over-subelements W dniu poniedziałek, 13 kwietnia 2015 14:12:21 UTC+2 użytkownik wrede...@gmail.com napisał: Hi, I am trying to create a role for multiple

[ansible-project] Re: access the facts from the module

2015-04-15 Thread jack
Found one solution: use to_json to convert the facts into string format, then pass this string into module. Thanks jack On Tuesday, April 14, 2015 at 6:21:36 PM UTC-7, jack wrote: Hi All: We are trying to write some site custom modules, it requires to access other facts generated from our

[ansible-project] Deployment automation Beta program. Interested?

2015-04-15 Thread Josh Pederson
We're looking for DevOps Engineers, IT Ops Managers, and Release Engineers to participate in our Beta program for ElectricFlow Deploy http://electric-cloud.com/products/electricflow/deploy-automation/ -- release automation tool. This is part of a research effort by my product team. For your

[ansible-project] Registering returns to a dictionary attribute

2015-04-15 Thread Tony Yarusso
So, I have a dictionary variable containing information about all of my users, like this: user_dictionary: bjones: realname: Bob Jones uniqueid: 1007 status: active notes: Database consultant Part of my playbook changes users' UIDs to make sure they're consistent across all

[ansible-project] EC2 Inventory Script - boto profiles (ansible 1.8)

2015-04-15 Thread Gary Malouf
I've been struggling to get the inventory script to pick up my boto profile (I have multiple aws account creds to manage). What is the correct filter to use in the ec2.ini to specify the profile that should be used? Also, how does the presence of both ~/.boto and ~/.aws/credentials files

Re: [ansible-project] Windows Hosts Setup

2015-04-15 Thread Chris Church
The intro to Windows documentation assumes you have some familiarity with how to define your inventory and specify group and host variables ( http://docs.ansible.com/intro_inventory.html). Since you mentioned version 2.1.1, I assume you're using Tower. In this case, you can use the Tower UI to

[ansible-project] route53 alias records

2015-04-15 Thread Nico K.
Hi, When I add an ALIAS record in route53 through the ansible module a . is appended to the end of the value which is wrong. For example: mydomain.com. A ALIAS dualstack.mydomain.com. The dot at the end of 'dualstack.mydomain.com' should not be there, if it is there the record will not

[ansible-project] Re: create network interface (ENI) on EC2 instance? possible to use raw boto commands?

2015-04-15 Thread Rob White
Hi guys, Recently had this requirement myself. I've written a module here https://github.com/wimnat/ansible-modules-extras/blob/feature/ec2_eni/cloud/amazon/ec2_eni.py I'd appreciate testing / feedback and if all good I'll submit a PR to ansible-modules-extras Thanks, On Tuesday, 6 January

[ansible-project] Re: route53 alias records

2015-04-15 Thread Nico K.
My apologies, further investigation shows that AWS is actually broken. For those interested: https://forums.aws.amazon.com/thread.jspa?messageID=610954 In a nutshell, the 'dualstack' versions currently seem to have region specific hardcoded zone id's that you can't obtain through the API. --

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-15 Thread P
On Wednesday, April 15, 2015 at 11:17:43 AM UTC+1, P wrote: On Wednesday, April 8, 2015 at 5:03:43 PM UTC+1, Brian Coca wrote: The current git checkout, its easy to use in parallel of any other version and only for this test BTW, if I install it from github how do I switch between each

Re: [ansible-project] IOError: [Errno 25] Inappropriate ioctl for device

2015-04-15 Thread P
On Wednesday, April 8, 2015 at 5:03:43 PM UTC+1, Brian Coca wrote: The current git checkout, its easy to use in parallel of any other version and only for this test BTW, if I install it from github how do I switch between each release/branch ? -- You received this message because you