oasis_roles.system_repositories

This Role Is No Longer Active: Please Use the Version Found in the oasis_roles.system Ansible Collection

Build Status

Configure System Repositories

This role sets up and installs system repositories, mainly for systems using yum or dnf.

Requirements

  • Ansible version 2.4 or higher
  • Red Hat Enterprise Linux 6 or newer, or a similar system
  • Most versions of Fedora

Role Variables

The following variables can be used:

General

  • system_repositories_configs: A list of repository configurations based on the Ansible yum_repository module. Most important options are supported. If something is missing, you can add it through a pull request.
  • system_repositories_repo_files: A list of URLs for repo files that should be downloaded to the target directory. Be cautious when using this to avoid issues with remote downloads.
  • system_repositories_rpm_keys: A list of RPM keys that need to be installed on the system.
  • system_repositories_validate_certs: This is true by default, but can be set to false if repo files or RPM keys are downloaded via HTTPS and the certificates are not valid on the target system.

Dependencies

There are no dependencies.

Example Playbook

- hosts: system_repositories_servers
  roles:
    - role: oasis_roles.system_repositories
      system_repositories_configs:
        - name: My Repo Name
          baseurl: http://somedomain.tld/some/path
      system_repositories_repo_files:
        - http://somedomain.tld/some/repo/my_repo.repo
        - http://otherdomain.net/path/to/repo_file.repo

License

This work is licensed under the BSD license.

Author Information

Greg Hellings greg.hellings@gmail.com

Informazioni sul progetto

Installs yum/dnf repositories and their keys

Installa
ansible-galaxy install oasis_roles.system_repositories
Licenza
gpl-3.0
Download
78.6k
Proprietario