arillso.repositories

Ansible役割: リポジトリ

ビルドステータス ライセンス Ansible Galaxy Ansible役割

説明

CentOSとUbuntuのリポジトリを管理します。デフォルトでは、CentOSにはepelリポジトリ、UbuntuにはUniverseリポジトリが設定されます。

インストール

ansible-galaxy install arillso.repositories

要件

なし

役割変数

repositories

repositoriesは、システムに追加すべきリポジトリのリストですが、UbuntuまたはCentOSで異なります。

ubuntu

ubuntuのキーはaptリポジトリモジュールのパラメータに対応しています。詳細は: apt_repositoryをご覧ください。

必要なパラメータは次のとおりです:

オプション コメント
name ソースリストの名前を設定
repo リポジトリのソース文字列

centos

centosのキーはyumリポジトリモジュールとrpmキーのパラメータに対応しています。詳細は: yum_repositoryrpm_keyをご覧ください。

リポジトリを作成する際に必要なパラメータは次のとおりです:

オプション コメント
name baseurlの名前を設定
description リポジトリの説明を設定
baseurl yumリポジトリの'repodata'ディレクトリが存在するURL

_baseurl_パラメータは、_metalink_または_mirrorlist_パラメータに置き換えることができます。

defaults

repositories:
  ubuntu:
    - name: 'ubuntu universe'
      repo: 'deb http://archive.ubuntu.com/ubuntu {{ ansible_distribution_release | lower }} universe'
    - name: 'ubuntu universe'
      repo: 'deb http://archive.ubuntu.com/ubuntu {{ ansible_distribution_release | lower }}-security universe'
    - name: 'ubuntu universe'
      repo: 'deb http://archive.ubuntu.com/ubuntu {{ ansible_distribution_release | lower }}-updates universe'
  centos:
    - name: 'epel'
      description: 'EPEL YUMリポ'
      baseurl: https://download.fedoraproject.org/pub/epel/$releasever/$basearch/
      key: https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7

依存関係

例プレイブック

- hosts: all
  roles:
    - arillso.repositories

著者

ライセンス

このプロジェクトはMITライセンスのもとにあります。完全なライセンステキストはLICENSEファイルをご覧ください。

著作権

(c) 2020, Arillso

プロジェクトについて

Manages Repository under CentOS and Ubuntu

インストール
ansible-galaxy install arillso.repositories
ライセンス
mit
ダウンロード
566.8k
所有者