As per https://github.com/ansible/ansible/blob/devel/CHANGELOG.md

"Fix to make implicit fact gathering task correctly inherit settings from
play, this might cause an error if settings environment on play depending
on 'ansible_env' which was previously ignored"

On Mon, Feb 29, 2016 at 7:44 PM, Ben Cohen <[email protected]> wrote:

> After upgrading ansible versions:
>
> ncohen@breathe ~/s/f/fn-ansible (master)> ansible --version
>
> ansible 2.0.1.0
>
>   config file = /Users/ncohen/software/face/fn-ansible/ansible.cfg
>
>   configured module search path = Default w/o overrides
>
> I'm getting an error on first usage of ansible_env variable
>
> ```
> - hosts: local
>   environment:
>     PATH: "{{ ansible_env.PATH }}:/usr/local/bin"
>   tasks:
>       ...
> ```
>
>
> Error looks like this:
>
> ```
> PLAY
> ***************************************************************************
>
>
> TASK [setup]
> *******************************************************************
>
> fatal: [localhost]: FAILED! => {"failed": true, "msg": "'ansible_env' is
> undefined"}
>
>
> NO MORE HOSTS LEFT
> *************************************************************
>
> to retry, use: --limit @<snip>
>
> PLAY RECAP
> *********************************************************************
>
> localhost                  : ok=0    changed=0    unreachable=0
> failed=1
> ```
>
> Anyone have any idea what's going on?  This worked on 2.0.0.1 without
> issue ...
>
>
> --
> 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/CABUBibsio9cKH7r8-CR%2Bd8xCJSe0SBC1jFGP2F3L%2B%3DLXCba5dw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CABUBibsio9cKH7r8-CR%2Bd8xCJSe0SBC1jFGP2F3L%2B%3DLXCba5dw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
----------
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/CACVha7f61cUZwLjm-%3DBEPmJB-EPDJK5x%3DPBf4Y3%2B%2BNJTcuqUfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to