From 1988f740442c647c025bde8b7e10cc17e10fc49d Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Tue, 18 Jun 2024 17:06:51 +0200 Subject: [PATCH] Workaround a bug. --- roles/role_deploy_dovecot/tasks/main.yml | 6 ++++++ roles/role_deploy_openvpn-server/tasks/main.yml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/roles/role_deploy_dovecot/tasks/main.yml b/roles/role_deploy_dovecot/tasks/main.yml index 3b3e47c..0388d07 100644 --- a/roles/role_deploy_dovecot/tasks/main.yml +++ b/roles/role_deploy_dovecot/tasks/main.yml @@ -60,6 +60,12 @@ become: true when: not dovecot_installed_flag.stat.exists +- name: Remove config directory + ansible.builtin.file: + path: "{{ remote_workdir }}/config" + state: absent + when: not dovecot_installed_flag.stat.exists + - name: Retrieve config repo ansible.builtin.git: repo: "ssh://git@git.scimetis.net:2222/yohan/config.git" diff --git a/roles/role_deploy_openvpn-server/tasks/main.yml b/roles/role_deploy_openvpn-server/tasks/main.yml index 6109d2d..0a865aa 100644 --- a/roles/role_deploy_openvpn-server/tasks/main.yml +++ b/roles/role_deploy_openvpn-server/tasks/main.yml @@ -17,6 +17,11 @@ SECRETS_ARCHIVE_PASSPHRASE: "{{ lookup('env', 'SECRETS_ARCHIVE_PASSPHRASE') }}" become: true +- name: Remove config directory + ansible.builtin.file: + path: "{{ remote_workdir }}/config" + state: absent + - name: Retrieve config repo ansible.builtin.git: repo: "ssh://git@git.scimetis.net:2222/yohan/config.git"