Role server-basic: add template for standard apt sources
This commit is contained in:
parent
f3eb2e1b02
commit
6904d9fb25
5 changed files with 32 additions and 0 deletions
|
@ -29,3 +29,5 @@ ffrl_exit_server:
|
|||
public_ipv4_address: 185.66.194.1
|
||||
tunnel_ipv4_network: 100.64.1.114/31
|
||||
tunnel_ipv6_network: 2a03:2260:0:90::/64
|
||||
|
||||
debian_apt_mirror: "debian.mirrors.ovh.net"
|
||||
|
|
|
@ -12,3 +12,4 @@ Diese Ansible role installiert Pakete, die auf allen MWU-Server benötigt werden
|
|||
|
||||
- Liste `packages` (Rollen Variable)
|
||||
- Variable `default_locale` (Rollen-Variable)
|
||||
- Variable `debian_apt_mirror`
|
||||
|
|
2
roles/server-basic/defaults/main.yml
Normal file
2
roles/server-basic/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
debian_apt_mirror: "ftp.de.debian.org"
|
|
@ -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
|
||||
package:
|
||||
name: rpcbind
|
||||
|
|
15
roles/server-basic/templates/apt-sources-list.j2
Normal file
15
roles/server-basic/templates/apt-sources-list.j2
Normal 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
|
Loading…
Reference in a new issue