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
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
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
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
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
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
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
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
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
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
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',
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
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}}
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
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
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
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
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
18 matches
Mail list logo