trombik.apt_repo

ansible-role-apt_repo

This role is used to add apt keys and apt repositories.

Debian and PPA

This role does not allow adding PPA repositories for Debian intentionally.

Requirements

No special requirements.

Role Variables

Variable Description Default
apt_repo_to_add List of URLs for apt repositories []
apt_repo_keys_to_add List of URLs for apt keys []
apt_repo_enable_apt_transport_https If set to True, it will install apt-transport-https false
apt_repo_required_packages List of required packages {{ __apt_repo_required_packages }}
apt_repo_codename_devuan_to_debian A mapping from Devuan codename to Debian codename See below

apt_repo_codename_devuan_to_debian

This is a dictionary that maps Devuan codenames to Debian codenames. The keys are the Devuan codenames, and the values are the corresponding Debian codenames.

Debian

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

Dependencies

No dependencies.

Example 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

License

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

You can use, copy, modify, and share this software for any purpose, free of charge, as long as this copyright notice and permission notice are included in all copies.

THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR IS NOT RESPONSIBLE FOR ANY DAMAGES OR ISSUES THAT MAY OCCUR FROM USING IT.

Author Information

Tomoyuki Sakurai y@trombik.org

Informazioni sul progetto

Add apt keys and apt repositories

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