Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1020 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 1020 Bytes

Ansible Role: apt-sources

Build Status

Ansible role that configures apt sources for Ubuntu and Debian. Defaults to the dynamic mirrors

Supported Operating Systems

  • Debian (all versions)
  • Ubuntu (all versions)

Requirements

  • Ansible 2.1+

Role Variables

See ./defaults/main.yml for configurable variables and their defaults

Example playbook

---
- name: Example play
  hosts: all
  roles:
    - { apt-sources }

Example playbook (with some optional vars set)

---
- name: Example play with optional vars set
  hosts: all
  roles:
    - { apt-sources,
        apt_sources_file: "/etc/apt/sources.list.d/mysource.list",
        apt_sources_security: no
      }

Add as a submodule to your playbook repo

git submodule add https://github.com/bramford/ansible-role-apt-sources.git roles/apt-sources