l3d.ansile_version

Ansible Galaxy MIT License

Sprawdzanie wersji Ansible

Co to robi?

Ten rol sprawdza wersję ansible-playbook i zakończy działanie, jeśli jest za stara. To powinno pomóc zapobiec poważniejszym problemom z przestarzałymi instalacjami Ansible.

Jak używać?

Ten rol Ansible powinien być wykonany na localhost.

Przykładowy playbook:

Z Ansible Galaxy:

# instalacja roli
ansible-galaxy install do1jlr.ansible_version

Przykład playbooka:

---
- hosts: localhost
  roles:
  - {role: do1jlr.ansible_version, tags: [version, always], gather_facts: false}

Bez Ansible Galaxy:

Dodaj tę rolę do swoich ról jako ansible_version. Przykład:

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

Twój playbook może wyglądać tak:

---
- name: sprawdź, czy Ansible nie jest za stary
  hosts: localhost
  tags:
    - default
    - version
    - always
  roles:
    - ansible_version
  gather_facts: false

Modyfikacje

Aby zobaczyć możliwe modyfikacje, zajrzyj do folderu default!

Udział

Ten rol jest rozwijany na githubie. Zachęcamy do zgłaszania wszelkich problemów lub wysyłania zgłoszeń. Dziękujemy! <3

Testowanie

Ten rol jest testowany za pomocą tych github-action dla różnych wersji Debiana i Ubuntu. Sprawdzanie stylu kodu jest testowane przez travis-ci oraz oficjalną akcję Ansible na Githubie. Jeśli chcesz dowiedzieć się więcej o naszych testach, sprawdź rynek Github.

status testów Marketplace Github
Ansible Lint check akcja ansible-lint
Yamllint GitHub Actions akcja yamllint-github
Galaxy Release publikacja roli Ansible do Galaxy
Ansible check debian:stable test Ansible z Debiana stable
Ansible check debian:sid test Ansible z Debiana sid
Ansible check debian:buster test Ansible z Debiana buster
Ansible check debian:stretch test Ansible z Debiana stretch
Ansible check ubuntu:latest test Ansible z Ubuntu latest
Ansible check ubuntu:bionic test Ansible z Ubuntu bionic
Ansible check ubuntu:trusty test Ansible z Ubuntu trusty
Ansible check centos:centos7 test Ansible z CentOS 7
Ansible check centos:centos8 test Ansible z CentOS 8
Ansible check centos:latest test Ansible z CentOS latest
O projekcie

Make sure you are only executing ansible with at least a specific ansible version.

Zainstaluj
ansible-galaxy install l3d.ansile_version
Licencja
mit
Pobrania
36.9k
Właściciel
Ansible roles provide a framework for fully independent, or interdependent collections of variables,tasks,files,templates &modules. Here we maintain some. enjoy