feat(apt): Use distribution name

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2024-04-27 17:25:39 +02:00
parent 2a2f19e92c
commit 7b2b1b8329
No known key found for this signature in database
GPG key ID: A2EB1F2CA8E3F677
3 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -7,8 +7,8 @@
state: absent
- name: Define repositories
ansible.builtin.copy:
src: files/apt/raspi.list
ansible.builtin.template:
src: apt/raspi.list.j2
dest: /etc/apt/sources.list.d/raspi.list
- name: Update system

View 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