1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_versioncheck.git synced 2024-08-16 15:59:49 +02:00
Ansible role to make sure your local client is up to date
Find a file
2020-03-03 13:34:57 +01:00
.github Add LICENSE and Galaxy icon 2020-03-03 13:06:12 +01:00
defaults Allow ansible 2.8.0 - because debain is not so much up to date 2020-01-16 00:51:59 +01:00
meta Update supported os list 2020-03-03 13:34:57 +01:00
tasks Update versioncheck mechanism 2020-01-23 13:18:13 +01:00
.travis.yml Manage travis notifications 2020-03-03 12:53:51 +01:00
LICENCE initial commit 2019-10-01 23:15:15 +02:00
README.md Add LICENSE and Galaxy icon 2020-03-03 13:06:12 +01:00

Ansible Galaxy Build Status MIT License

Check Ansible Version

What is it doing?

This role check the ansible-playbook version and will fail, if it is to old. This should help prevent bigger issues with to old ansible installations

How to use?

This anisble role should be executet on localhost.

Example playbook:

With ansible galaxy:

# install role
ansible-galaxy install do1jlr.ansible_version

Example playbook:

---
- hosts: localhost
  roles:
  - do1jlr.ansible_version

Without ansible galaxy:

Add this role to your roles as ansible_version. Example:

git clone https://github.com/roles-ansible/role_ansible-version.git roles/ansible_version

Your Playbook could look like this:

---
- name: check if ansible is not to old
  hosts: localhost
  tags:
   - default
  roles:
    - ansible_version
  gather_facts: no

Modifications

For possible modifications please have a look into the default Folder!

Participation

This role is developed on github. Feel free to add any Issues or PullRequests there. Thanks <3

Testing

This role is tested with these github-action tests for different versions of debian and ubuntu. Linting is tested via travis-ci and the official ansible github action. If you want to find out more about our tests, please have a look at the github marketplace.

test status Github Marketplace
Travis Build Status .travis.yml
Ansible Lint check ansible-lint action
Ansible check debian:stable ansible test with debian stable
Ansible check debian:sid ansible test with debian sid
Ansible check debian:buster ansible test with debian buster
Ansible check debian:jessie ansible test with debian jessie
Ansible check debian:stretch ansible test with debian stretch
Ansible check ubuntu:latest ansible test with ubuntu latest
Ansible check ubuntu:bionic ansible test with ubuntu bionic
Ansible check ubuntu:disco ansible test with ubuntu disco
Ansible check ubuntu:eoan ansible test with ubuntu eoan
Ansible check ubuntu:focal ansible test with ubuntu focal
Ansible check ubuntu:trusty ansible test with ubuntu trusty
Ansible check ubuntu:xenial ansible test with ubuntu xenial