[ansible-project] Loop issue with nested variable and dict

2015-08-05 Thread R. Dikkes
Hi, I am trying to do the following: Consul-template needs to generate a haproxy config, the consul template i want to be dynamic filled with Ansible. The consul template however is a Go template and unfortunately Go uses the brackets yaml uses. To be able to build a Go template ansible

Re: [ansible-project] Loop issue with nested variable and dict

2015-08-05 Thread R. Dikkes
me at {% raw %}{% endraw %} http://jinja.pocoo.org/docs/dev/templates/#escaping On 5 August 2015 at 11:55, R. Dikkes r.di...@gmail.com javascript: wrote: The consul template however is a Go template and unfortunately Go uses the brackets yaml uses. To be able to build a Go

[ansible-project] Re: Use of | in a variable

2015-08-05 Thread R. Dikkes
Tried to escape it? - REGEX: \\b/exclude1/\\b\|\\b/exclude2/\\b On Tuesday, July 28, 2015 at 2:49:11 AM UTC+2, Steve Malenfant wrote: I'm running into a little problem trying to register a variable with a | in it. Anybody know how to escape those? I've got this template : {% for

Re: [ansible-project] Non-existing group resulted in error.

2015-08-05 Thread R. Dikkes
Maybe you could look at ignore_error ? On Wednesday, August 5, 2015 at 7:35:27 AM UTC+2, Nico K. wrote: It to ignore the fact that this group doesn't exist within this playbook/inventory for the sake of re-usability of the role. On Tuesday, August 4, 2015 at 11:00:01 PM UTC+2, Brian Coca

Re: [ansible-project] Loop issue with nested variable and dict

2015-08-05 Thread R. Dikkes
Issue solved. :) On Wednesday, August 5, 2015 at 3:08:10 PM UTC+2, R. Dikkes wrote: But that would leave alone my Go template language right? It wouldn't solve the looping over instead of inside the template, am i correct? Thank you for your answer! :) On Wednesday, August 5, 2015 at 3:01

[ansible-project] nested regexp_replace in an ansible variable:

2015-07-01 Thread R. Dikkes
Hello all, I am currently looking at a quote issue in an ansible nested variable and i cannot get it clear why it is not working. Can you help me out? Some details: hostname: x55-n12 I want to get the first value (x55) with a regular expression: (.*?)(?=\-) and place this value in a file

Re: [ansible-project] Ansible get variable output

2015-05-28 Thread R. Dikkes
: + item.item.key + pass: + item.stdout }} with_items: foo.results On Thu, May 28, 2015 at 5:00 PM, R. Dikkes r.di...@gmail.com javascript: wrote: Hi all, Thank you for reading my question. I am running into this issue and hope you can help me! What we want to do is feed a tool