[ansible-project] Re: Vagrant + Multiple Machines + Ansible

2015-03-17 Thread Rubén Ortiz
Hi! wow, I was reading about the subject of dynamic inventory. Actually it is my first time with a setup so complex. My Vagrantfile is (based on work of one guy, I don't remember now the link of github, apologies): *# -*- mode: ruby -*-* *# vi: set ft=ruby :* *# Vagrantfile API/syntax

[ansible-project] Paramaterized handlers

2015-03-17 Thread nebular . wolf
I have a playbook I created to deploy graphite. It has a role dependency on runit (service is responsible to keep the carbon-relays and the carbon-caches up and running) how do I set up the project so I can reuse the install service tasks and make sure the handlers are called for each

[ansible-project] integrate Maven repository API (Aether) into Ansible?

2015-03-17 Thread Torsten Reinhard
Hi, our developers use Maven for their (local) builds which stores artifacts in the local filesystem (~/.m2/repository) The build server uses the same build - and uploads artifact to a repository server (Nexus), which is a quite common setup I guess. Now we have introduced Ansible - for

Re: [ansible-project] unarchive multiple zip files

2015-03-17 Thread tsg07ica
Hi Brian, thanks for the response. A bit confused about the {{item}} variable you mention? How does that translate to all zip files in the directory? I get the following failure if I run precisely what you've suggested, but that may not be your intention?:- ERROR: Syntax Error while loading

[ansible-project] How to get ec2 instance id tag when it's in an autoscaling group - a Jinja2 escaping problem?

2015-03-17 Thread Stephen Tan
Sounds simple, but it isn't. I want to create a variable called instance_role which is set to the aws:autoscaling:groupName on the instance. However, there is a formatting problem as the colons are used by Jinja and I can't figure out how to escape them. The role: --- - name: Get our

[ansible-project] Use STS Assumed-Role to query EC2 inventory - Does this work?

2015-03-17 Thread slikk66
Hi guys, don’t kill me. new-ish, to Ansible. I've already searched and tried the #irc room, no luck so far. Trying to run Asgard playbook from https://github.com/Answers4AWS/netflixoss-ansible. I’ve already gotten ICE working on my own account, but on this one trying to set it up on a

[ansible-project] Best practice to test custom ansible modules

2015-03-17 Thread Michael Mulder
Hi, I just looking for a good way to test my custom ansible modules. I know I can create a test-role which is doing it, but maybe there is already a solution out of the box or a best-practise (didnt find smth like that till now) Greetings Michael -- You received this message because you

[ansible-project] ssh bastion

2015-03-17 Thread michael . ibarra
Hi all, I'm trying to use ansible with hosts located inside a DMZ. All the remote hosts have PasswordAuthentication no, RSAAuthentication ye,s and PubkeyAuthentication yes. So, when I try to connect using my playbook I got: http://pastebin.com/hg2HQNVc Also: $cat ~/.ssh/config

Re: [ansible-project] Could not find default inventory in Mac

2015-03-17 Thread Martin
Hi, With ansible being so simple I'd suggest this order of installation: * virtualenv with pip install * virtualenv with git checkout With the current development speed and given that is indeed rather easy to run from git I'd think that anything else is just a major PITA. I've never even

[ansible-project] Execute handler only if another was not notified

2015-03-17 Thread Nikolay Artamonov
Hi guys! Let's assume that we have simple playbook: --- - hosts: server.com tasks: - name: Some task - ... - notify A - name: Some another task - ... - notify B - name: Some another another task - ... - notify B handlers: - name: A - ... - name

[ansible-project] authorized_key + lookup + with_items

2015-03-17 Thread Maciej Wawrzyńczuk
Hi, I have problem I cannot manage. When I try to use authorized_key module in loop with lookup i have error: ERROR: cannot find lookup plugin named item for usage in with_item this is my code: - name: User key authorized_key: user={{ item }} key={{ lookup('file',

Re: [ansible-project] authorized_key + lookup + with_items

2015-03-17 Thread Brian Coca
with_items (plural) not with_item: userlist -- Brian Coca -- 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

Re: [ansible-project] unarchive multiple zip files

2015-03-17 Thread Brian Coca
so Item is a variable that always gets populated when adding a with_ clause, with_ is how you iterate in a task. with_ clauses must be on their own line, not on the task line, write it as I do here: - name: extract Java ZIP file one on target(s) - this may take some unarchive: src={{item}}

[ansible-project] Re: How to get ec2 instance id tag when it's in an autoscaling group - a Jinja2 escaping problem?

2015-03-17 Thread Stephen Tan
OK - someone called halberom on freenode #ansible gave me the answer: # A better way of referencing dict elements to avoid escaping issues instance_role: {{ instance_tags['tags']['aws:autoscaling:groupName'] }} this is a cleaner way of getting to the dictionary. On Tuesday, 17 March

Re: [ansible-project] authorized_key + lookup + with_items

2015-03-17 Thread Maciej Wawrzyńczuk
What the shame... ;) Thanks. On Tuesday, March 17, 2015 at 1:55:43 PM UTC+1, Brian Coca wrote: with_items (plural) not with_item: userlist -- Brian Coca -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this group

[ansible-project] How to cancel planned handler execution if another handler was notified?

2015-03-17 Thread Nikolay Artamonov
Hi guys! Let's assume we have simple playbook: --- - hosts: server.com tasks: - name: Some task - ... - notify A - name: Some another task - ... - notify B - name: Some another another task - ... - notify B handlers: - name: A - ... - name: B

Re: [ansible-project] merging (environment) dicts?

2015-03-17 Thread Jiri
On Wednesday, May 21, 2014 at 10:41:08 AM UTC+1, Andrew Pashkin wrote: But it is desireable to have merge_dicts filter for that. I have created a pull request to extend the union filter with support to merge two dicts: https://github.com/ansible/ansible/pull/10483 Please feel free to comment

Re: [ansible-project] unarchive multiple zip files

2015-03-17 Thread Craig Simmons
Brilliant. Thanks Brian. All working now. Much appreciated On 17 Mar 2015, at 12:54, Brian Coca bc...@ansible.com wrote: so Item is a variable that always gets populated when adding a with_ clause, with_ is how you iterate in a task. with_ clauses must be on their own line, not on the