Skip to content
Snippets Groups Projects
Commit 77df37e4 authored by Adrian Rixon's avatar Adrian Rixon
Browse files

Add support for deb822 repos, with example in README

Remove local defaults; all lists now empty

	modified:   README.md
	modified:   defaults/main.yml
	modified:   tasks/main.yml
parent 897a66d5
Branches
No related tags found
No related merge requests found
......@@ -14,14 +14,16 @@ Role Variables
--------------
repo_keys:
List of URLs for repository keys
List of URLs for repository keys (default: none)
repo_distro:
Distribution name for all repositories (default: automatic)
repo_list:
List of URLs for the repositories to be configured (default: local
repos)
List of URLs for the repositories to be configured (default: none)
repo_ppa_list:
List of PPA repositories to be added
List of PPA repositories to be added (default: none)
repo_deb822_list:
List of repository parameters to add in deb822 format (default:
none), same arguments as deb822_repository module
Dependencies
------------
......@@ -32,6 +34,16 @@ Example Playbook
----------------
- hosts: all
vars:
repo_deb822_list:
- name: local
architectures: amd64
types: deb
uris: http://www.repohost.com/my/repo
suites: "{{ ansible_distribution_release }}"
components:
- main
signed_by: http://www.repohost.com/my/repo/repokey.gpg
roles:
- { role: repos }
......
......@@ -4,10 +4,7 @@
repo_distro: "{{ ansible_distribution_release }}"
# local
repo_keys:
- 'http://apt.cf.ac.uk/aptly.pub'
repo_list:
- 'http://apt.cf.ac.uk/'
- 'http://apt.cf.ac.uk/cu-cuda/'
- 'http://apt.cf.ac.uk/cu-comsc/'
repo_keys: []
repo_list: []
repo_ppa_list: []
repo_deb822_list: []
......@@ -34,3 +34,20 @@
- custom-config
- custom-config-apt
- repo-config
- name: add deb822 respositories
deb822_repository:
name: "{{ item.name }}"
architectures: "{{ item.architectures | default(omit) }}"
uris: "{{ item.uris }}"
types: "{{ item.types | default(omit) }}"
suites: "{{ item.suites | default(omit) }}"
components: "{{ item.components | default(omit) }}"
signed_by: "{{ item.signed_by | default(omit) }}"
state: "{{ item.state | default(omit) }}"
with_items: "{{ repo_deb822_list }}"
when: ansible_pkg_mgr == 'apt'
tags:
- custom-config
- custom-config-apt
- repo-config
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment