role_podman/tasks/installation.yml

34 lines
793 B
YAML
Raw Permalink Normal View History

2023-12-21 16:30:57 +00:00
---
# tasks file for podman
2024-06-07 23:51:45 +00:00
- name: Installer les paquets
2023-12-21 16:30:57 +00:00
ansible.builtin.apt:
2024-10-22 09:14:15 +00:00
name: "{{ podman_packages }}"
2024-06-07 23:51:45 +00:00
install_recommends: true
2023-12-21 16:30:57 +00:00
state: present
2024-06-06 00:16:51 +00:00
become: true
notify:
2024-10-22 09:14:15 +00:00
- Fix passt VS pasta
- Restart instance
- Wait SSH is ready
2024-06-06 00:16:51 +00:00
- name: Exécuter les handlers
ansible.builtin.meta: flush_handlers
2024-04-18 19:26:32 +00: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 09:14:15 +00:00
notify: Restart rsyslog.service
2024-06-18 10:36:04 +00: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