I am trying to use the `| default(omit)` filter in the environment variable
declaration of my docker role, for example:
- name: start container
docker:
name: foo
image: foo
state: reloaded
pull: always
restart_policy: always
env:
COMMAND: '{{ command|default(omit) }}'
net: default
Then I'm using the role in the playbook without specifying the command
variable, which I would expect would omit any value from being set to the
environment variable. Instead, this is what is in the environment when the
container is started:
COMMAND=__omit_place_holder__4aee0541e67c9db52882aecb3a955196572ae0f8
any ideas what I could be doing wrong?
--
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/1791ee05-ce71-4b5c-ad6f-db879217644c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.