feat: Redémarrer le conteneur après son déploiement

This commit is contained in:
pulsar89.5 2024-06-09 13:19:09 +02:00
parent 55a54636b5
commit 1da27ec5a2
2 changed files with 12 additions and 0 deletions

View File

@ -30,3 +30,14 @@
state: restarted state: restarted
name: rsyslog.service name: rsyslog.service
become: true become: true
- name: Redémarrer le conteneur
ansible.builtin.systemd:
name: "{{ item.name }}"
state: restarted
scope: true
daemon_reload: true
become: true
loop: "{{ podman_containers }}"
loop_control:
label: "{{ item.name }}"

View File

@ -34,3 +34,4 @@
label: "{{ item.name }}" label: "{{ item.name }}"
vars: vars:
container_user: "podman-{{ item.user | default(item.name) }}" container_user: "podman-{{ item.user | default(item.name) }}"
notify: Redémarrer le conteneur