I personally manage in the neighborhood of 20 Gentoo systems at the moment
(though the number has been a bit higher in times past - isohunt.com used
Gentoo exclusively when I was involved/it was still alive). Dependency-wise
app-portage/gentoolkit{,-dev} are actually among the list of packages
Hi Randy,
You may want to use a layer like Vagrant to simplify this initial setup. I
use the vagrant-digitalocean plugin which interacts with the DO API to
create droplets and returns ip info for the droplets (even sets up
private(ish) IPs) - you can then run Ansible from within or outside
Hi All,
I'm new in Ansible and looking at the OpenStack related modules in ansible.
All the modules worked pretty well in my environment except the
nova_compute module when I tried to create a VM instance. I was getting the
following error:
PLAY [all]
Hello,
In certain cases it's useful to be able to add a number to the value of an
{{ item }} variable
For example when creating md (raid) devices, md0 for example is made up of
partitions sda1 and sdb1.
with_items:
[ 0, 1, 2, 3, 4 etc ]
It would be nice to be able to reference {{ item }}
I doubt a log file will give you any additional information.
I looked at nova_compute, and that error seems to occur in a specific situation.
The code does the following:
1) List all servers, passing a filter parameter to the API where it filters
based on the name you provided.
2) If it get's
Try {{ item|int +1 }}
K
On 04/02/2014 5:58 AM, edrozenb...@gmail.com wrote:
Hello,
In certain cases it's useful to be able to add a number to the value of an
{{ item }} variable
For example when creating md (raid) devices, md0 for example is made up of
partitions sda1 and sdb1.
That won't quite work as you cannot access the whole list this way.
However:
http://docs.ansible.com/playbooks_loops.html#id20
each item and it's successor:
- debug: msg=at index {{ item[0] }} there lies a value {{ item[1] }} and
the next item is {{ foo[item[0]] }}
with_indexed: foo
Though
Hi,
we are trying to use the variable for the value of retries at loop. But
always hit an error. We are using ansible version 1.4.3.
Here is the sample test playbook:
- hosts: test-servers
vars:
tries: 5
tasks:
- name: test
debug: msg=looping
register: output
This is probably not something the system is templating out, but should.
Please make sure you have filed a github.com/ansible/ansible ticket with
the above info so we can add templating to this call.
Thanks!
On Mon, Feb 3, 2014 at 4:11 PM, jack jackma1...@gmail.com wrote:
Hi,
we are trying
Thanks very much Matt! What you described was exactly what the situation
was and your suggestion solved my problem!
Yes, I did have one vm called 'testvm2' already existed in my environment.
I guess this vm was the culprit. Now I used a different name 'smallvm', and
the vm creation was
Here is the issue just created:
https://github.com/ansible/ansible/issues/5865
Thanks
Jack
On Monday, February 3, 2014 1:20:54 PM UTC-8, Michael DeHaan wrote:
This is probably not something the system is templating out, but should.
Please make sure you have filed a
Hello,
I'm getting a traceback on a group_by, which is intended to create a group
named after each of a host's existing groups, prepended by a variable that
is being set with '-e' at invocation (a site/host-group ID):
- name: vagrant | Create provider-agnostic ID_and_type group
group_by:
I swapped the add_host tasks for some group_by's and its working.
Thanks,
Mark
On Monday, January 27, 2014 5:06:58 PM UTC-6, Mark Casey wrote:
Ok, saw the note on the github ticket (thanks, and sorry if filing it was
premature). Not sure whether to continue here or there; here I guess...
I recently got some errors on the end nodes I was deploying to. Error
is: -su: /dev/null: Permission denied, which in general seems to be
recoverable after a reboot. It looks like the /dev/null file is just
deleted somehow. Has anyone else seen this? Very weird.
--
You received this
On Mon, Feb 3, 2014 at 5:56 PM, Michael DeHaan mich...@ansible.com wrote:
Can you please share the relevant command lines and playbook snippets that
got you there?
It's a pretty big role-based system. Can I share it with you privately?
(Also can we see the output in the context of the run?)
A module around setting up and seeding/downloading-from something like
murder could be interesting.
(https://github.com/lg/murder)
Or perhaps it's a pair of Galaxy roles?
On Mon, Feb 3, 2014 at 6:27 PM, Steven Truong djatlan...@gmail.com wrote:
Hi all,
Included is a link to a talk that
Or this https://github.com/ru/Herd. This is one python file.
On Mon, Feb 3, 2014 at 3:35 PM, Michael DeHaan mich...@ansible.com wrote:
A module around setting up and seeding/downloading-from something like
murder could be interesting.
(https://github.com/lg/murder)
Or perhaps
Hi,
I am not sure whether someone has come across this issue previously -
trying to search the group for 'when' and 'is defined' did not yield me
anything useful. So I am posting it as a new topic here.
I have encountered that in case I use 'when:' clause where I need to test
whether one
Forgot to mention that I use
ansible-playbook 1.5 (devel 27199dc219) last updated 2013/12/04 20:39:15
(GMT +1100)
On Tuesday, February 4, 2014 11:32:14 AM UTC+11, Roman Revyakin wrote:
Hi,
I am not sure whether someone has come across this issue previously -
trying to search the group
false != false. You have a string/boolean issue. Aka, the var1 is
not the boolean value false, but the string value false.
On 02/03/2014 06:32 PM, Roman Revyakin wrote:
Hi,
I am not sure whether someone has come across this issue previously -
trying to search the group for 'when' and 'is
Hi Adam,
I do not think so, please see my example above with the
ansible-playbook -i host -v test_playbook.yaml --extra-vars var1=false
var2='something'
being executed as expected (skipped). In case var1 was a string, the
when: var2 is defined
when: var1
conditions would evaluate
I'm not certain but...
According to the documentation when: takes a jinja 2 expression.
I don't know the order of precedence in jinja 2, but
var1 and var2 is defined
could be read as
(var1 and var2) is defined
or
var1 and (var2 is defined)
I suspect that you are looking for the second one,
On 2/3/14, 4:32 PM, Roman Revyakin wrote:
cat test_playbook.yaml EOF
---
- hosts: all
gather_facts: false
tasks:
- name: Play only if var1 is true and var2 is defined
local_action: command echo Yes {{ var1 }} is true and {{ var2 }}
is defined
when: var1 and var2 is
Is there a way to access the play.hosts from my play?
I would like to be able to do:
- hosts:
tag_role_cluster_host:tag_environment_staging:tag_deployment_us_east
and then use the host list generated by that set intersection to configure
each of hosts with the complete list of it's peers.
So
Hi Jesse,
Thanks for getting to the bottom of this and providing a working solution!
Works as charm indeed! Jinja framework is crazy IMHO.
Adam: grouping does not help, I tried it before submitting my first
request, as well as swapping the order.
The issue is solved, thank you! I wonder what is
On 2/3/14, 6:58 PM, Ed Zarecor wrote:
Is there a way to access the play.hosts from my play?
I would like to be able to do:
- hosts:
tag_role_cluster_host:tag_environment_staging:tag_deployment_us_east
and then use the host list generated by that set intersection to
configure each of hosts
On 2/3/14, 7:00 PM, Roman Revyakin wrote:
The issue is solved, thank you! I wonder what is the process of altering
documentation on docs.ansible.com http://docs.ansible.com, googling
for it provided me a link which does not contain the text that is shown
in the search preview.
Does submitting
This turned out to be a script error, where I was rm'ing a file that
occassionally is /dev/null Ansible was in no way responsible. Sorry for
the false alarm and thanks for the awesome software!
Very Respectfully,
Dan CaJacob
On Mon, Feb 3, 2014 at 6:08 PM, Dan CaJacob dan.caja...@gmail.com
28 matches
Mail list logo