Role server-basic: add template for standard apt sources

This commit is contained in:
Tobias Hachmer 2018-03-04 19:51:35 +01:00
parent f3eb2e1b02
commit 6904d9fb25
5 changed files with 32 additions and 0 deletions

View file

@ -29,3 +29,5 @@ ffrl_exit_server:
public_ipv4_address: 185.66.194.1 public_ipv4_address: 185.66.194.1
tunnel_ipv4_network: 100.64.1.114/31 tunnel_ipv4_network: 100.64.1.114/31
tunnel_ipv6_network: 2a03:2260:0:90::/64 tunnel_ipv6_network: 2a03:2260:0:90::/64
debian_apt_mirror: "debian.mirrors.ovh.net"

View file

@ -12,3 +12,4 @@ Diese Ansible role installiert Pakete, die auf allen MWU-Server benötigt werden
- Liste `packages` (Rollen Variable) - Liste `packages` (Rollen Variable)
- Variable `default_locale` (Rollen-Variable) - Variable `default_locale` (Rollen-Variable)
- Variable `debian_apt_mirror`

View file

@ -0,0 +1,2 @@
---
debian_apt_mirror: "ftp.de.debian.org"

View file

@ -1,4 +1,16 @@
--- ---
- name: configure debian apt repositories
template:
src: apt-sources-list.j2
dest: /etc/apt/sources.list
owner: root
group: root
mode: 0644
- name: update package information
apt:
update_cache: yes
- name: ensure rpcbind is not installed - name: ensure rpcbind is not installed
package: package:
name: rpcbind name: rpcbind

View file

@ -0,0 +1,15 @@
#
# {{ ansible_managed }}
#
deb http://{{ debian_apt_mirror }}/debian/ {{ ansible_distribution_release }} main contrib non-free
deb-src http://{{ debian_apt_mirror }}/debian/ {{ ansible_distribution_release }} main contrib non-free
deb http://{{ debian_apt_mirror }}/debian/ {{ ansible_distribution_release }}-updates main contrib non-free
deb-src http://{{ debian_apt_mirror }}/debian/ {{ ansible_distribution_release }}-updates main contrib non-free
deb http://{{ debian_apt_mirror }}/debian/ {{ ansible_distribution_release }}-backports main contrib non-free
deb-src http://{{ debian_apt_mirror }}/debian/ {{ ansible_distribution_release }}-backports main contrib non-free
deb http://security.debian.org/debian-security {{ ansible_distribution_release }}/updates main contrib non-free
deb-src http://security.debian.org/debian-security {{ ansible_distribution_release }}/updates main contrib non-free