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].
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/0c4b39f5-6f54-44c7-8d5b-aecbb822f669%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.