mullholland.repository_epel

Ansible role repository_epel

epelリポジトリをシステムに追加する

GitHub ダウンロード バージョン
github downloads Version

例のプレイブック

この例はmolecule/default/converge.ymlから取得され、各プッシュ、プルリクエスト、リリースでテストされています。

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true
  # vars:
  #   example_var: "value"
  roles:
    - role: "mullholland.repository_epel"

マシンは準備する必要があります。CIではmolecule/default/prepare.ymlを使用してこれを行います:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: true

  roles:
    # - role: mullholland.repository_codereadybuilder
    #   when:
    #     - (ansible_distribution == "RedHat" and ansible_distribution_major_version == "8") or
    #       (ansible_distribution == "CentOS" and ansible_distribution_major_version == "9")
    - role: mullholland.repository_powertools
      when:
        - ansible_distribution in [ "CentOS", "Rocky", "AlmaLinux" ]
        - ansible_distribution_major_version == "8"

ロール変数

変数のデフォルト値はdefaults/main.ymlに設定されています:

---
repository_epel_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ repository_epel_version }}"

_repository_epel_version:
  RedHat:
    "7": 7
    "8": 8
  CentOS:
    "7": 7
    "8": 8
    "9": 9
  Rocky:
    "8": 8
  AlmaLinux:
    "8": 8
  Amazon:
    "2": 7

repository_epel_version: "{{ _repository_epel_version[ansible_distribution][ansible_distribution_major_version] }}"

repository_epel_packages:
  RedHat:
    "7":
      - "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
    "8":
      - "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm"
  CentOS:
    "7":
      - "epel-release"
    "8":
      - "epel-release"
      - "epel-next-release"
    "9":
      - "https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm"
      - "https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm"
  Rocky:
    "8":
      - "epel-release"
  AlmaLinux:
    "8":
      - "epel-release"
  Amazon:
    "2":
      - "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"

依存関係

コンテキスト

このロールは多くの互換性のあるロールの一部です。さらなる情報はこれらのロールのドキュメントをご覧ください。

関連するロールの概要: 依存関係

互換性

このロールはこれらのコンテナイメージでテストされています:

コンテナ タグ
EL すべて
Amazon 候補

必要なAnsibleの最小バージョンは2.10で、次のテストが行われました:

  • 前のバージョン。
  • 現在のバージョン。
  • 開発版。

問題が見つかった場合は、GitHubに登録してください。

ライセンス

MIT

著者情報

Mullholland

プロジェクトについて

Add the epel Repository to the System

インストール
ansible-galaxy install mullholland.repository_epel
ライセンス
apache-2.0
ダウンロード
4.8k
所有者