Re: [ansible-project] Re: Passing arguments to a module

27 views
Skip to first unread message

Tomasz Kontusz

unread,
Nov 13, 2014, 2:29:05 AM11/13/14
to ansible...@googlegroups.com
ansible --version should not say 1.7.2 if you are using devel. Make you sure you did:
1. source /path/to/repo/hacking/env-setup
2. Clean your shell's binaries location cache (IIRC hash --help should tell you how in bash/zsh)

Or just use $(which ansible-playbook) to run your plays :-)

Dane Lipscombe <da...@lipscombe.com.au> napisał:
I am unable to use the 1.8 omit default either

env={{item.container.env|default(omit)}}

One or more undefined variables: 'omit' is undefined

When using the dev version should ansible --version still say 1.7.2?

the 'which ansible' command is pointing to my checkout...

On Tuesday, 11 November 2014 19:16:30 UTC+9, Dane Lipscombe wrote:
I would like to pass arguments to the docker module like so:

- container:
        name: 'testa'
        image: 'testa'
- container:
        name: 'testb'
        image: 'testb'

- name: Start docker containers
  docker:
  args: "{{item.container}}"
  with_items: run_docker_containers

But i get the error:

ERROR: args must be a dictionary, received {{item.container}} (<type 'str'>)

I saw that there was a bug here and tried the latest dev version still without success

should the above issue have fixed the problem above?


--
Wysłane za pomocą K-9 Mail.
Reply all
Reply to author
Forward
0 new messages