trombik.apt_repo

ansible-role-apt_repo

Agregar claves y repositorios de apt.

Debian y PPA

El rol, deliberadamente, no soporta agregar repositorios PPA en Debian.

Requisitos

Ninguno

Variables del rol

Variable Descripción Predeterminado
apt_repo_to_add lista de URLs de repositorios de apt []
apt_repo_keys_to_add lista de URLs de claves de apt []
apt_repo_enable_apt_transport_https instalar apt-transport-https si es True false
apt_repo_required_packages Lista de paquetes requeridos {{ __apt_repo_required_packages }}
apt_repo_codename_devuan_to_debian Un diccionario para mapear el nombre en clave de Devuan al nombre en clave de Debian ver abajo

apt_repo_codename_devuan_to_debian

Un diccionario para mapear el nombre en clave de Devuan al nombre en clave de Debian. Las claves son los nombres en clave de Devuan y los valores son los nombres en clave correspondientes de Debian.

Debian

Variable Predeterminado
__apt_repo_required_packages ["gnupg", "ca-certificates"]

Dependencias

Ninguna

Ejemplo de Playbook

---
- hosts: localhost
  roles:
    - ansible-role-apt_repo
  vars:
    apt_repo_keys_to_add:
      - https://artifacts.elastic.co/GPG-KEY-elasticsearch
      - https://repos.influxdata.com/influxdb.key
    dist_apt_repo_to_add:
      Debian:
        - deb https://artifacts.elastic.co/packages/7.x/apt stable main
      Devuan:
        - deb https://artifacts.elastic.co/packages/7.x/apt stable main
        - "deb https://repos.influxdata.com/debian {{ apt_repo_codename_devuan_to_debian[ansible_distribution_release] | default("") }} stable"
      Ubuntu:
        - deb https://artifacts.elastic.co/packages/7.x/apt stable main
        - ppa:ubuntuhandbook1/audacity

    apt_repo_to_add: "{{ dist_apt_repo_to_add[ansible_distribution] }}"
    apt_repo_enable_apt_transport_https: True

Licencia

Copyright (c) 2016 Tomoyuki Sakurai <[email protected]>

Se concede permiso para usar, copiar, modificar y distribuir este software para cualquier propósito, con o sin cargo, siempre que el aviso de copyright anterior y este aviso de permiso aparezcan en todas las copias.

EL SOFTWARE SE PROVEE "TAL CUAL" Y EL AUTOR RENUNCIA A TODAS LAS GARANTÍAS RELATIVAS A ESTE SOFTWARE, INCLUYENDO TODAS LAS GARANTÍAS IMPLÍCITAS DE COMERCIABILIDAD Y ADECUACIÓN. EN NINGÚN CASO EL AUTOR SERÁ RESPONSABLE DE CUALQUIER DAÑO ESPECIAL, DIRECTO, INDIRECTO O CONSECUENCIAL O DE CUALQUIER DAÑO RESULTANTE DE LA PÉRDIDA DE USO, DATOS O BENEFICIOS, YA SEA EN UNA ACCIÓN DE CONTRATO, NEGLIGENCIA U OTRA ACCIÓN TORTUOSA, DERIVADA DE O EN RELACIÓN CON EL USO O RENDIMIENTO DE ESTE SOFTWARE.

Información del autor

Tomoyuki Sakurai y@trombik.org

Acerca del proyecto

Add apt keys and apt repositories

Instalar
ansible-galaxy install trombik.apt_repo
Licencia
isc
Descargas
9.9k
Propietario
PGP finger print: 03EB 3D97 5E04 9B0C AB21 93A2 D693 42A9 EFBC 3577 Makerspace and Coliving in Siem Reap, Cambodia: http://info.mkrsgh.org/