role_apt/tasks/configuration.yml

36 lines
806 B
YAML

---
# tasks file for apt
- name: Déployer la configuration du gestionnaire
ansible.builtin.template:
src: apt.conf.j2
dest: /etc/apt/apt.conf.d/99-custom
owner: root
group: root
mode: u=rw,g=r,o=r
become: true
notify: Mettre à jour le cache
- name: Nettoyer le fichier de base
ansible.builtin.file:
path: /etc/apt/sources.list
state: absent
become: true
notify: Mettre à jour le cache
- name: Supprimer le mirroirs
ansible.builtin.file:
path: /etc/apt/mirrors
state: absent
become: true
- name: Déployer la configuration des sources
ansible.builtin.template:
src: debian.sources.list.j2
dest: /etc/apt/sources.list.d/debian.sources
owner: root
group: root
mode: u=rw,g=r,o=r
become: true
notify: Mettre à jour le cache