thydel.version-ansible
ansible-version
An ansible role to embed ansible_version module
- Embed eponymous module to get
ansible_versionavailable as an ansible fact. - The galaxy role is name
version-ansiblebecause galaxy auto-removeansibleprefix.
Requirements
I dont know if __version__ is available for all ansible version
Role Variables
None
Dependencies
Use embedded eponymous module
Example Playbook
- hosts: localhost
gather_facts: False
roles:
- role: ansible-version
tasks:
- local_action: ansible_version
- set_fact: mode=0400
- when: ansible_version | version_compare('1.8', '>=')
set_fact: mode=a-x
License
BSD
Author Information
Thierry Delamare
Install
ansible-galaxy install thydel.version-ansibleLicense
mit
Downloads
343
Owner
@thyepi for private pro repos
