feat: Redémarrer le conteneur après son déploiement
This commit is contained in:
parent
55a54636b5
commit
1da27ec5a2
@ -30,3 +30,14 @@
|
||||
state: restarted
|
||||
name: rsyslog.service
|
||||
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 }}"
|
||||
|
@ -34,3 +34,4 @@
|
||||
label: "{{ item.name }}"
|
||||
vars:
|
||||
container_user: "podman-{{ item.user | default(item.name) }}"
|
||||
notify: Redémarrer le conteneur
|
||||
|
Loading…
Reference in New Issue
Block a user