From 91f115fcac523ae61906a9b6a7f1c57a09e7a36b Mon Sep 17 00:00:00 2001 From: Romain Pelisse Date: Thu, 28 Nov 2024 16:38:04 +0100 Subject: [PATCH] fixup --- roles/wildfly_migration/tasks/install/rhn.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/roles/wildfly_migration/tasks/install/rhn.yml b/roles/wildfly_migration/tasks/install/rhn.yml index 473ebff..0ec09bc 100644 --- a/roles/wildfly_migration/tasks/install/rhn.yml +++ b/roles/wildfly_migration/tasks/install/rhn.yml @@ -9,13 +9,13 @@ - name: "Esclade privileges if needed" block: - - name: "Load metadata on Migration Toolkit archive for EAP8" + - name: "Load metadata on server migration tool archive for EAP8" ansible.builtin.stat: path: "{{ eap_migration_server_tool_path_to_archive }}" register: eap_migration_archive_md delegate_to: "{{ eap_migration_server_download_node | default(omit) }}" - - name: "Ensure Migration Toolkit for EAP8 has been downloaded" + - name: "Ensure server migration tool for EAP8 has been downloaded" redhat.runtimes_common.product_download: client_id: "{{ rhn_username }}" client_secret: "{{ rhn_password }}" @@ -37,7 +37,12 @@ - eap_migration_server_download_node is defined - eap_migration_server_download_node == 'localhost' - - name: "Ensure Migration Toolkit for EAP8 has been decompressed" + - name: "Ensure that server migration tool home folder exists" + ansible.builtin.file: + path: "{{ eap_migration_server_tool_install_dir }}" + state: directory + + - name: "Ensure server migration tool for EAP8 has been decompressed" ansible.builtin.unarchive: src: "{{ eap_migration_server_tool_path_to_archive }}" dest: "{{ eap_migration_server_tool_install_dir }}"