You've already forked role_podman
refacto: Rewriting for Debian Sid
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user