Hi there,
I did use it (quote them and put {{}} around) but still got errors
TASK [postgres : Install postgres93]
*******************************************
task path: /home/stevek/ansible-jumbo/roles/postgres/tasks/01-install.yml:7
[DEPRECATION WARNING]: Using bare variables for environment is deprecated.
Update your playbooks so that the environment
value uses the full variable syntax ('{{foo}}'). This feature will be
removed in a future release. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
<test-pg1-all> ESTABLISH CONNECTION FOR USER: root on PORT 22 TO
test-pg1-all
<test-pg1-all> EXEC /bin/sh -c 'mkdir -p "$( echo
$HOME/.ansible/tmp/ansible-tmp-1454651909.82-26088368040824 )" && echo "$(
echo $HOME/.ansible/tmp/ansible-tmp-1454651909.82-26088368040824 )"'
<test-pg1-all> PUT /tmp/tmp1tF9fp TO
/root/.ansible/tmp/ansible-tmp-1454651909.82-26088368040824/yum
fatal: [test-pg1-all]: FAILED! => {"failed": true, "msg": "environment must
be a dictionary, received proxy_env (<class
'ansible.parsing.yaml.objects.AnsibleUnicode'>)"}
The proxy_env is a dictionary declared in inventory
proxy_env:
dummy: dummy
So it wont work. How can I make it work then?
Thanks
On Wednesday, January 20, 2016 at 9:58:55 AM UTC+10, Brian Coca wrote:
>
> already gave you the solution:
>
> environment: "{{proxy_env}}"
>
> environment won't take bare vars to confuse with strings in 2.0, it
> will properly validate.
>
>
>
> --
> Brian Coca
>
--
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/d8b53f43-320a-47f1-b44f-4a3c74ea1623%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.