feat(apt): Use distribution name
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
2a2f19e92c
commit
7b2b1b8329
3 changed files with 6 additions and 5 deletions
|
@ -1,3 +0,0 @@
|
||||||
# Managed by Ansible
|
|
||||||
deb http://mirror.unix-solutions.be/raspbian/raspbian/ buster main
|
|
||||||
deb http://mirror.nl.leaseweb.net/raspbian/raspbian/ buster main
|
|
|
@ -7,8 +7,8 @@
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Define repositories
|
- name: Define repositories
|
||||||
ansible.builtin.copy:
|
ansible.builtin.template:
|
||||||
src: files/apt/raspi.list
|
src: apt/raspi.list.j2
|
||||||
dest: /etc/apt/sources.list.d/raspi.list
|
dest: /etc/apt/sources.list.d/raspi.list
|
||||||
|
|
||||||
- name: Update system
|
- name: Update system
|
||||||
|
|
4
templates/apt/raspi.list.j2
Normal file
4
templates/apt/raspi.list.j2
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{{ ansible_managed | comment }}
|
||||||
|
|
||||||
|
deb http://mirror.unix-solutions.be/raspbian/raspbian/ {{ ansible_distribution_release }} main
|
||||||
|
deb http://mirror.nl.leaseweb.net/raspbian/raspbian/ {{ ansible_distribution_release }} main
|
Loading…
Reference in a new issue