From 6e3aab65942e2da274fd283cae094ffd988ba4f7 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 6 Mar 2023 11:00:42 +0200 Subject: [PATCH] Make devture-traefik to matrix-traefik migration code a little safer --- .../tasks/devture_traefik_to_matrix_traefik.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/custom/matrix_playbook_migration/tasks/devture_traefik_to_matrix_traefik.yml b/roles/custom/matrix_playbook_migration/tasks/devture_traefik_to_matrix_traefik.yml index 7d1b1190d..f192cf015 100644 --- a/roles/custom/matrix_playbook_migration/tasks/devture_traefik_to_matrix_traefik.yml +++ b/roles/custom/matrix_playbook_migration/tasks/devture_traefik_to_matrix_traefik.yml @@ -23,13 +23,13 @@ enabled: false daemon_reload: true - - name: Ensure Traefik systemd service doesn't exist - ansible.builtin.file: - path: "{{ devture_systemd_docker_base_systemd_path }}/devture-traefik.service" - state: absent - - name: Ensure Traefik directory relocated ansible.builtin.command: cmd: "mv /devture-traefik {{ devture_traefik_base_path }}" creates: "{{ devture_traefik_base_path }}" removes: "/devture-traefik" + + - name: Ensure Traefik systemd service doesn't exist + ansible.builtin.file: + path: "{{ devture_systemd_docker_base_systemd_path }}/devture-traefik.service" + state: absent