I don't think so, at least in the examples I've seen so far, you can change 
user information in tables at will, but in fact you won't be allowed to do so 
in version 3.6 + of mongo.



| |
于宗洋
|
|
[email protected]
|
签名由网易邮箱大师定制


On 11/6/2018 20:29,ProfHase<[email protected]> wrote:
yes, thanks, funnily there is some logics behind that. The macro is like you 
would paste it at the spot. so, the first line is indented, and the others are 
not...

Am Donnerstag, 1. November 2018 18:16:03 UTC+1 schrieb Tony Chia:
Have you tried this to see if it removes the extra ident?
...                                                                             
                                      
{{ logging('fluentd')}}                                                         
                                  
...

On Wednesday, October 31, 2018 at 3:39:22 AM UTC-7, ProfHase wrote:
Hi @all,


I am trying to use a macro in an ansible template:



{% macro logging(ltype)%}

{%if ltype =='fluentd'%}
logging:
  driver:'fluentd'
  options:
    tag:"{{ app_name }}.{{ '{{' }}.Name{{ '}}' }}"
    labels:"mylabel"
{% endif %}
{% endmacro %}

...                                                                             
                                      
   {{ logging('fluentd')}}                                                      
                                     
...


When I render it (template module), I am always getting


...
   logging:
  driver:'fluentd'
  options:
    tag:"test.{{.Name}}"
    labels:"fhg.iam.appname,fhg.iam.hostname,fhg.iam.publicip,fhg.iam.privateip"

...


So apparently 'logging is indented right, but everything else just loses its 
indentation. Has anyone else got any similar problem?


--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c715437c-dfb1-4fd9-a34c-52202f36b8c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/43e63c23.1037f.166e9073b7d.Coremail.15911133389%40163.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to