Re: [ansible-project] Issue with yaml in jinja2

2023-03-06 Thread Guido Accardo
;s3:Put*" {% endif %} Resource: - "arn:aws:s3:::bucket/{{ env }}" - "arn:aws:s3:::bucket/{{ env }}/*" Thank you for this clarification, what you suggested worked! On Mon, Mar 6, 2023 at 12:40 PM Guido Accardo wrote: Hi Ansible community., I'd like to share

[ansible-project] Issue with yaml in jinja2

2023-03-06 Thread Guido Accardo
Hi Ansible community., I'd like to share a problem I'm having while trying lo load a yaml formatted template and perhaps getting feedback from you on how to make it work. I wrote the following playbook: https://gist.github.com/gaccardo/2c12fc4aab443978fe33829129237cbc If the content of

[ansible-project] win_dsc not working

2020-02-07 Thread Guido Giorgi
vv. The error was:at Microsoft.Management.Infrastructure.Internal.Operations.CimAsyncObserverProxyBase`1.ProcessNativeCallback(OperationCallbackProcessingContext callbackProcessingContext, T currentItem, Boolean moreResults, MiResult operationResult, String errorMessage, InstanceHandle

Re: [ansible-project] Problem trying to use a specific string with templates

2015-12-30 Thread Guido
uot;{% raw %}[%(asctime)s] {%(pathname)s:%(lineno)d} > %(levelname)s - %(message)s{% endraw %}" > > On Tue, Dec 29, 2015 at 7:42 AM, Guido <gacca...@gmail.com> wrote: > >> >> >> 2015-12-29 10:41 GMT-03:00 Guido Accardo <gacca...@gmail.com>: >>

[ansible-project] Problem trying to use a specific string with templates

2015-12-29 Thread Guido Accardo
Hi everyone, I'm trying to put a string by replacing a macro in a template but the problem is that the string itself it's being interpreted as a macro and I need to avoida that. Here are config vars and the template: vars.yml: log_format: "[%(asctime)s] {%(pathname)s:%(lineno)d}

Re: [ansible-project] Problem trying to use a specific string with templates

2015-12-29 Thread Guido
2015-12-29 10:41 GMT-03:00 Guido Accardo <gacca...@gmail.com>: > Hi everyone, > >I'm trying to put a string by replacing a macro in a template but the > problem is that the string itself it's being interpreted as a macro and I > need to avoida that. Here are config

[ansible-project] Re: Ansible 2.0 -- shade is required for this module

2015-08-14 Thread Guido García
Thanks James. Now it works like a charm. El viernes, 14 de agosto de 2015, 19:12:16 (UTC+2), James Martin escribió: If you've installed shade into a virtualenv on your ansible control machine, you may need to tell ansible to use that virtualenv in order to detect it. I've done it like so

[ansible-project] Re: Ansible 2.0 -- shade is required for this module

2015-08-11 Thread Guido García
Hi Chris. Same here. Did you manage to fix this issue? Thanks. El miércoles, 29 de julio de 2015, 21:26:48 (UTC+2), Chris Gordon escribió: I'm trying to use the os_server module in Ansible 2.0 and get the following error: fatal: [jump]: FAILED! = {changed: false, failed: true, msg: shade

[ansible-project] Applying a delay to with_items steps

2014-12-17 Thread Guido Accardo
/stop/{{ item }} method=POST with_items: processes.running connection: local Looking in the doc of Loops I could found the delay argument that do-until has. Is there something I'm missing here? Thank you, regards, Guido.- -- You received this message because you

Re: [ansible-project] command and shell: add unchanged=True

2014-02-20 Thread Guido Serra
of text here so I'm not sure what you are referring to. Are you asking if the register command is implemented now? It's been there for quite some time. On Tue, Feb 18, 2014 at 7:00 PM, Guido Serra gu...@gaikai.com wrote: On Tuesday, February 12, 2013 11:30:06 AM UTC-8, Yves Dorfsman

Re: [ansible-project] command and shell: add unchanged=True

2014-02-18 Thread Guido Serra
On Tuesday, February 12, 2013 11:30:06 AM UTC-8, Yves Dorfsman wrote: I like this. The other place where it would be useful is whenever you run a shell or a command to gather some data, for example I have one task to capture the userid of who is running the playbook: - name: get