Git Product home page Git Product logo

ansible-repos's Introduction

Ansible role that sets up the general YUM/APT repositories

build status

Requirements

This module requires Ansible >2.3 version.

Root access is necessary for this role, either run it as root or

use become: true, otherwise the play will fail.

Role variables

centos_repos (dictionary): Repository configuration for CentOS Linux

ubuntu_repos (dictionary): Repository configuration for Ubuntu Linux

The dictionary must look like the following:

<system>_repos:
    <repo name>:
        name: <repo name>
        url: <repo or PPA url>
        gpg_key: <gpg key of the repo>
        description: <mandatory description on CentOS>
        keyserver: <keyserver of the repo>
        id: <key id>
        

Detailed examples of the role variables:

# Adding the EPEL repository on CentOS

centos_repos:
  epel:
    name: EPEL
    url: "https://dl.fedoraproject.org/pub/epel/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/"
    gpg_key: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}" 
    description: EPEL repository

# Adding the Ansible and Docker repositories on Ubuntu

ubuntu_repos:
  ansible:
    url: 'ppa:ansible/ansible'
  docker:
    url: "deb https://apt.dockerproject.org/repo ubuntu-{{ ansible_distribution_release }} main"
    keyserver: hkp://ha.pool.sks-keyservers.net:80
    id: 58118E89F3A912897C070ADBF76221572C52609D

Examples

- hosts: all
  vars:
      ubunt_repos:
        ansible:
            url: 'ppa:ansible/ansible'
  roles:
    - repos

Dependencies

None

License

MIT

Author

Tamas Molnar - [email protected]

ansible-repos's People

Contributors

tmolnar0831 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.