Hi,

i'm trying to pass environment variables to my docker with *env *and 
populate it with a file. Like this:

- name: deploy container

      docker_container:
        name: test
        image: debian        
        env:
          include_vars:
            file: workbench.yml

i can't use env_file because the file isn't present to target host and i'm 
searching a workaround but when i execute this i got:

FAILED! => {"changed": false, "msg": "Non-string value found for env 
option. Ambiguous env options must be wrapped in quotes to avoid them being 
interpreted. Key: include_vars"}


there is a way to populate env from a file?

Thanks a lot

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fdafd0db-81fc-494b-9f61-af0247dcb592%40googlegroups.com.

Reply via email to