This commit is contained in:
yohan 2024-10-20 15:03:15 +02:00
parent 7a5c71d998
commit 51296b3626
2 changed files with 12 additions and 12 deletions

View File

@ -7,16 +7,16 @@
register: result_internal_named_systemd_stop
failed_when: "result_internal_named_systemd_stop is failed and 'Could not find the requested service' not in result_internal_named_systemd_stop.msg"
- name: Check if internal_named container exists
containers.podman.podman_container_info:
name: internal_named
register: internal_named_podman_info
- name: Check if internal_named container is running
command: 'podman ps -q --filter "name=internal_named"'
changed_when: false
register: podman_ps
become: true
- name: Assert that no internal_named container already exists
- name: Assert that no internal_named container is running
ansible.builtin.assert:
that:
- internal_named_podman_info.containers | length == 0
- podman_ps.stdout_lines | length == 0
- name: Create /usr/local/docker-mounted-files/docker-internal_named directory
ansible.builtin.file:

View File

@ -7,16 +7,16 @@
register: result_reverse_proxy_systemd_stop
failed_when: "result_reverse_proxy_systemd_stop is failed and 'Could not find the requested service' not in result_reverse_proxy_systemd_stop.msg"
- name: Check if reverse-proxy container exists
containers.podman.podman_container_info:
name: reverse-proxy
register: reverse_proxy_podman_info
- name: Check if reverse-proxy container is running
command: 'podman ps -q --filter "name=reverse-proxy"'
changed_when: false
register: podman_ps
become: true
- name: Assert that no reverse-proxy container already exists
- name: Assert that no reverse-proxy container is running
ansible.builtin.assert:
that:
- reverse_proxy_podman_info.containers | length == 0
- podman_ps.stdout_lines | length == 0
- name: Check if restore from backup is already done
stat: