role_apt/tasks/configuration.yml

36 lines
806 B
YAML
Raw Normal View History

2023-11-28 09:57:22 +00:00
---
# 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
2024-05-24 10:44:01 +00:00
- 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
2023-11-28 09:57:22 +00:00
- name: Déployer la configuration des sources
ansible.builtin.template:
2024-05-24 10:44:01 +00:00
src: debian.sources.list.j2
dest: /etc/apt/sources.list.d/debian.sources
2023-11-28 09:57:22 +00:00
owner: root
group: root
mode: u=rw,g=r,o=r
become: true
notify: Mettre à jour le cache