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:
|
|
|
|
name:
|
|
|
|
- dbus-user-session
|
2024-06-07 23:51:45 +00:00
|
|
|
- containernetworking-dnsname
|
|
|
|
- containernetworking-plugins
|
|
|
|
- containernetworking-podman-machine
|
|
|
|
- dbus-user-session
|
|
|
|
- passt
|
|
|
|
- podman
|
|
|
|
- podman-aardvark-dns
|
|
|
|
- podman-docker
|
|
|
|
- podman-gvproxy
|
|
|
|
- podman-netavark
|
|
|
|
- python3-podman-compose
|
|
|
|
- uidmap
|
2023-12-21 16:30:57 +00:00
|
|
|
- systemd-container
|
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-06-08 01:09:43 +00:00
|
|
|
- Corriger le problème passt VS pasta
|
2024-06-06 00:16:51 +00:00
|
|
|
- Redémarrer l'instance
|
|
|
|
- Attendre que le port SSH soit ouvert
|
|
|
|
|
|
|
|
- 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
|
|
|
|
notify: Redémarrer 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
|