add apt sources.list task
This commit is contained in:
parent
6d2d39a4b0
commit
091526034c
3
roles/common/defaults/main.yml
Normal file
3
roles/common/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
apt_update_cache: true
|
||||||
|
apt_upgrade: true
|
||||||
14
roles/common/files/sources.list
Normal file
14
roles/common/files/sources.list
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
deb https://deb.debian.org/debian/ trixie contrib main non-free non-free-firmware
|
||||||
|
# deb-src https://deb.debian.org/debian/ trixie contrib main non-free non-free-firmware
|
||||||
|
|
||||||
|
deb https://deb.debian.org/debian/ trixie-updates contrib main non-free non-free-firmware
|
||||||
|
# deb-src https://deb.debian.org/debian/ trixie-updates contrib main non-free non-free-firmware
|
||||||
|
|
||||||
|
deb https://deb.debian.org/debian/ trixie-proposed-updates contrib main non-free non-free-firmware
|
||||||
|
# deb-src https://deb.debian.org/debian/ trixie-proposed-updates contrib main non-free non-free-firmware
|
||||||
|
|
||||||
|
deb https://deb.debian.org/debian/ trixie-backports contrib main non-free non-free-firmware
|
||||||
|
# deb-src https://deb.debian.org/debian/ trixie-backports contrib main non-free non-free-firmware
|
||||||
|
|
||||||
|
deb https://security.debian.org/debian-security/ trixie-security contrib main non-free non-free-firmware
|
||||||
|
# deb-src https://security.debian.org/debian-security/ trixie-security contrib main non-free non-free-firmware
|
||||||
@ -4,6 +4,27 @@
|
|||||||
update_cache: true
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
|
|
||||||
|
- name: Déployer /etc/apt/sources.list
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: files/sources.list
|
||||||
|
dest: /etc/apt/sources.list
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0644'
|
||||||
|
backup: yes
|
||||||
|
notify: apt update
|
||||||
|
|
||||||
|
- name: Mettre à jour le cache APT
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: yes
|
||||||
|
when: apt_update_cache
|
||||||
|
|
||||||
|
- name: Mettre à jour tous les paquets
|
||||||
|
ansible.builtin.apt:
|
||||||
|
upgrade: dist
|
||||||
|
when: apt_upgrade
|
||||||
|
|
||||||
|
|
||||||
- name: Paquets de base
|
- name: Paquets de base
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user