l3d.epel

MITライセンス Ansible Galaxy Ansible centos:latestチェック

role_install-epel-release

RHELおよびCentOS上にEnterprise Linuxのための追加パッケージ(EPEL)リポジトリをインストールするためのAnsibleロールです。

ここで何をしますか?

  • まず、あなたが設定した変数と、私たちのデフォルト値を読み取ります。
  • 有効にすると、シンプルなバージョンチェックを行い、このロールを以前に実行した後、古いバージョンのこのロールを実行しないことを確認します(デフォルトは無効)。
  • あなたのディストリビューションリリースのEPELリポジトリのGPGキーがインストールされていて、設定のフィンガープリントと一致するかを検証します。
  • リモートURLからepelリポジトリをインストールします。

このロールの使用例

このロールは、Ansible Galaxyを通じて利用するか、手動でダウンロードすることができます。

ansible galaxy: このロールをインストール

ansible-galaxy install do1jlr.epel

ansible-galaxy: 例のプレイブック

---
- name: epelリリースをインストール
  hosts: srv01.example.com
  roles:
    - do1jlr.epel

手動でロールをダウンロード

# ロールディレクトリにダウンロード
git clone https://github.com/roles-ansible/role_install-epel-release.git

手動での例のプレイブック

---
- name: epelリリースをインストール
  hosts: srv02.example.com
  tags:
   - epel
  vars:
    submodules_versioncheck: true
  roles:
    - role_install-epel-release

変数と設定

こちらが上書き可能なデフォルト値です:

# シンプルなバージョンチェックを行いますか?(trueを推奨)
submodules_versioncheck: false

# epelリポジトリ
epel_repo:
  url: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
  gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
  gpg_key_path: "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
  fingerprint:
    '6': "8C3B E96A F230 9184 DA5C 0DAE 3B49 DF2A 0608 B895"
    '7': "91E9 7D7C 4A5E 96F1 7F3E 888F 6A2F AEA2 352C 64E5"
    '8': "94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1"

テスト

このロールは、異なるバージョンのCentOSに対してこれらのGitHubアクションでテストされています。リントはTravis CIを通じてテストされています。 私たちのテストについてさらに知りたい場合は、GitHubマーケットプレイスをご覧ください。

テストステータス GitHubマーケットプレイス
Galaxyリリース AnsibleロールをGalaxyに公開する
Ansible centos:latestチェック centos:latestでのAnsibleテスト
Ansible centos:centos8チェック centos 8でのAnsibleテスト
Ansible centos:centos7チェック centos 7でのAnsibleテスト
Yamllint GitHub Actions Ansibleリントテスト
プロジェクトについて

Ansible role to install the Extra Packages for Enterprise Linux (EPEL) - Repository on RHEL/centos

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