Not quite yet. Have a look at https://github.com/ansible/ansible/pull/6619

On Friday, April 11, 2014, Bryan Larsen <[email protected]> wrote:

> I have a task that works on devel but not on 1.5.4.   I assume it's
> because of https://github.com/ansible/ansible/commit/2a976a
>
> - authorized_key: user={{ item|basename }} key="{{ lookup('file', item) }}"
>   with_fileglob:
>     - "../../../../keys/*"
>
> We have ansible installed on all our production machines so we can do `-c
> local` deploys.   I don't want to upgrade those machines off of a "stable"
> version -- if we've gotten far enough to run a `-c local`, at least some of
> the keys have been installed and we can skip the step.
>
> So I figured I'd just gate the task on ansible_version or some such.
> However, there doesn't appear to be such a variable, and I can't find
> anything like that in -m setup.
>
> Is there some way of figuring out if we're running 1.5 or 1.6 or later and
> using that in a task?
>
> Alternatively, is there a way of making my task work on 1.5?   It worked
> on 1.2 and 1.3 (with a different path).
>
> thanks,
> Bryan
>
> --
> 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]<javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to 
> [email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/0c4b39f5-6f54-44c7-8d5b-aecbb822f669%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/0c4b39f5-6f54-44c7-8d5b-aecbb822f669%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
[email protected]
http://sivel.net/

-- 
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/CAD8N0v_c1zDp-yEeukNYPSATcsN2xoqu-Y6FRZPwLG7avC%2BC0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to