From fd1d6bca53864b7be6c23bbdf2882dba4fe43ea2 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 19 Oct 2024 18:15:27 +0200 Subject: [PATCH] Start containers on reboot. --- tasks/deploy_mysql-server.yml | 3 --- tasks/deploy_reverse-proxy.yml | 4 ---- 2 files changed, 7 deletions(-) diff --git a/tasks/deploy_mysql-server.yml b/tasks/deploy_mysql-server.yml index 087f099..c219f11 100644 --- a/tasks/deploy_mysql-server.yml +++ b/tasks/deploy_mysql-server.yml @@ -19,7 +19,6 @@ registry: "{{ private_registry_domain }}" changed_when: false become: true - when: not mysql_installed_flag.stat.exists - name: Create mysql-server container containers.podman.podman_container: @@ -36,7 +35,6 @@ generate_systemd: path: /etc/systemd/system become: true - when: not mysql_installed_flag.stat.exists - name: start/enable container service ansible.builtin.systemd: @@ -45,7 +43,6 @@ state: started enabled: true become: true - when: not mysql_installed_flag.stat.exists - name: Include tasks/mysql-server_install_from_backup_stage_3.yml ansible.builtin.include_tasks: "tasks/mysql-server_install_from_backup_stage_3.yml" diff --git a/tasks/deploy_reverse-proxy.yml b/tasks/deploy_reverse-proxy.yml index 263d358..746cca6 100644 --- a/tasks/deploy_reverse-proxy.yml +++ b/tasks/deploy_reverse-proxy.yml @@ -8,7 +8,6 @@ containers.podman.podman_network: name: reverse-proxy become: true - when: not reverse_proxy_installed_flag.stat.exists - name: Setup volume ansible.builtin.include_role: @@ -92,7 +91,6 @@ registry: "{{ private_registry_domain }}" changed_when: false become: true - when: not reverse_proxy_installed_flag.stat.exists - name: Create reverse-proxy container containers.podman.podman_container: @@ -111,7 +109,6 @@ generate_systemd: path: /etc/systemd/system become: true - when: not reverse_proxy_installed_flag.stat.exists - name: start/enable container service ansible.builtin.systemd: @@ -120,4 +117,3 @@ state: started enabled: true become: true - when: not reverse_proxy_installed_flag.stat.exists