refacto: Rewriting for Debian Sid

This commit is contained in:
2024-10-22 11:14:15 +02:00
parent 14e5cb0537
commit 157aeff3df
9 changed files with 165 additions and 149 deletions

View File

@@ -1,21 +1,34 @@
---
# handlers file for exim4
- name: Set default permissions on volumes folders
ansible.builtin.file:
path: "{{ item.path }}"
owner: "{{ podman_user }}"
group: "{{ podman_user }}"
become: true
loop: "{{ folders.results | selectattr('changed', 'equalto', true) }}"
loop_control:
label: "{{ item.path }}"
# source: https://github.com/containers/buildah/issues/5440#issuecomment-2028911573
- name: Corriger le problème passt VS pasta
- name: Fix passt VS pasta
ansible.builtin.file:
state: hard
force: true
src: /usr/bin/passt
dest: /usr/bin/pasta
owner: root
group: root
mode: u=rw,g=r,o=r
force: true
when: podman_fix_pasta
become: true
- name: Redémarrer l'instance
- name: Restart instance
ansible.builtin.reboot:
become: true
- name: Attendre que le port SSH soit ouvert
- name: Wait SSH is ready
ansible.builtin.wait_for:
host: "{{ podman_ssh_host }}"
port: "{{ podman_ssh_port }}"
@@ -25,7 +38,7 @@
sleep: 10
delegate_to: 127.0.0.1
- name: Redémarrer rsyslog.service
- name: Restart rsyslog.service
ansible.builtin.systemd:
state: restarted
name: rsyslog.service