feat: Use ansible module for podman

This commit is contained in:
2024-06-06 02:16:51 +02:00
parent b5484b1c73
commit 60737c9a5a
5 changed files with 54 additions and 39 deletions

View File

@@ -1,6 +1,20 @@
---
# handlers file for exim4
- name: Redémarrer l'instance
ansible.builtin.reboot:
become: true
- name: Attendre que le port SSH soit ouvert
ansible.builtin.wait_for:
host: "{{ podman_ssh_host }}"
port: "{{ podman_ssh_port }}"
search_regex: OpenSSH
delay: 30
timeout: 900
sleep: 10
delegate_to: 127.0.0.1
- name: Redémarrer rsyslog.service
ansible.builtin.systemd:
state: restarted