role_apt/tasks/configuration.yml

23 lines
560 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
- name: Déployer la configuration des sources
ansible.builtin.template:
src: "{{ apt_distribution_name }}-{{ apt_distribution_release }}.list.j2"
dest: /etc/apt/sources.list
owner: root
group: root
mode: u=rw,g=r,o=r
become: true
notify: Mettre à jour le cache