l3d.ansile_version

【Ansible Galaxy】【MITライセンス】

Ansibleバージョンのチェック

何をするの?

この役割は、ansible-playbookのバージョンをチェックし、古すぎる場合は失敗します。 これにより、古いAnsibleインストールによる大きな問題を防ぐのに役立ちます。

使い方は?

このAnsibleロールは、localhostで実行する必要があります。

例のプレイブック:

Ansible Galaxyを使う場合:

# ロールをインストール
ansible-galaxy install do1jlr.ansible_version

例のプレイブック:

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

Ansible Galaxyなしの場合:

このロールをansible_versionとして、あなたのロールに追加します。例:

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

あなたのプレイブックは次のようになります:

---
- name: Ansibleが古すぎないかチェック
  hosts: localhost
  tags:
    - default
    - version
    - always
  roles:
    - ansible_version
  gather_facts: false

変更点

変更が必要な場合は、defaultフォルダをご覧ください!

参加

このロールはGitHubで開発されています。 問題やプルリクエストを気軽に追加してください。ありがとう <3

テスト

このロールはGitHubアクションを使い、さまざまなDebianおよびUbuntuのバージョンでテストされています。リンティングはTravis CIと公式Ansible GitHubアクションでテストされています。 テストについてもっと知りたい場合は、GitHubマーケットプレイスをご覧ください。

テスト状況 GitHubマーケットプレイス
Ansible Lint チェック ansible-lintアクション
Yamllint GitHubアクション yamllint-github-action
Galaxyリリース galaxy用のAnsibleロールを公開
Ansibleチェックdebian:stable debian stableでのAnsibleテスト
Ansibleチェックdebian:sid debian sidでのAnsibleテスト
Ansibleチェックdebian:buster debian busterでのAnsibleテスト
Ansibleチェックdebian:stretch debian stretchでのAnsibleテスト
Ansibleチェックubuntu:latest ubuntu latestでのAnsibleテスト
Ansibleチェックubuntu:bionic ubuntu bionicでのAnsibleテスト
Ansibleチェックubuntu:trusty ubuntu trustyでのAnsibleテスト
Ansibleチェックcentos:centos7 centos7でのAnsibleテスト
Ansibleチェックcentos:centos8 centos8でのAnsibleテスト
Ansibleチェックcentos:latest centos latestでのAnsibleテスト
プロジェクトについて

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

インストール
ansible-galaxy install l3d.ansile_version
ライセンス
mit
ダウンロード
36.9k
所有者
Ansible roles provide a framework for fully independent, or interdependent collections of variables,tasks,files,templates &modules. Here we maintain some. enjoy