role_podman/tasks/installation.yml

34 lines
796 B
YAML
Raw Normal View History

2023-12-21 17:30:57 +01:00
---
# tasks file for podman
2024-06-08 01:51:45 +02:00
- name: Installer les paquets
2023-12-21 17:30:57 +01:00
ansible.builtin.apt:
2024-10-22 11:14:15 +02:00
name: "{{ podman_packages }}"
2024-06-08 01:51:45 +02:00
install_recommends: true
2023-12-21 17:30:57 +01:00
state: present
2024-06-06 02:16:51 +02:00
become: true
notify:
2024-10-22 11:14:15 +02:00
# - Fix passt VS pasta
# - Restart instance
# - Wait SSH is ready
2024-06-06 02:16:51 +02:00
- name: Exécuter les handlers
ansible.builtin.meta: flush_handlers
2024-04-18 21:26:32 +02:00
- name: Déployer la configuration de rsyslog
ansible.builtin.template:
src: templates/rsyslog.conf.j2
dest: /etc/rsyslog.d/10-podman.conf
owner: root
group: root
mode: u=rw,g=r,o=r
when: podman_configure_rsyslog
become: true
2024-10-22 11:14:15 +02:00
notify: Restart rsyslog.service
2024-06-18 12:36:04 +02:00
- name: Désactiver le service de mise à jour automatique pour root
ansible.builtin.systemd_service:
name: podman-auto-update.timer
enabled: false
become: true