Hi everyone,

I would like run docker container with log-driver as fluentd. I can't 
create fluentd tag in dynamic way, like below

- name: "run container"
  docker:
    name: api
    image: api
    state: started
    restart_policy: always
    tty: yes
    publish_all_ports: yes
    log_driver: fluentd
    log_opt:
      tag: "{{ '{{' }}index .ContainerLabels.some_var {{ '}}' }}"
      fluentd-async-connect: "true"
      fluentd-address: 10.10.10.10:224
    net: bridge
  register: container_api

Could you advice, please ?

Thanks

-- 
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/1d2cd757-ead8-42b5-8b1d-e44591a68135%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to