From e753d4bc8156e2b0f79282940e220cb0e5f22855 Mon Sep 17 00:00:00 2001
From: MarkAckert <mark.ackert@broadcom.com>
Date: Mon, 3 Jun 2024 16:23:14 -0400
Subject: [PATCH] add skip_configfmid option

Signed-off-by: MarkAckert <mark.ackert@broadcom.com>
---
 playbooks/README.md             | 1 +
 playbooks/install-fmid.yml      | 1 +
 tests/installation/src/utils.ts | 1 +
 3 files changed, 3 insertions(+)

diff --git a/playbooks/README.md b/playbooks/README.md
index 4223f0c004..e2deeba535 100644
--- a/playbooks/README.md
+++ b/playbooks/README.md
@@ -229,6 +229,7 @@ $ ansible-playbook -l <server> show-logs.yml -v
 - **zowe_auto_create_user_group**: A boolean value to enable or disable creating Zowe user and group. Default value is `false`.
 - **zowe_configure_security_dry_run**: A boolean value to skip running security configurations when configure Zowe instance.
 - **zos_keystore_mode**: An optional string to configure Zowe instance to store certificates into Keyring instead of keystore. Valid values are `<empty>` (default value) or `KEYSTORE_MODE_KEYRING`.
+- **skip_configfmid**: A boolean value to skip configuration of Zowe after FMID installation. Default value is `false`.
 - **skip_start**: A boolean value to skip automatically starting Zowe after installation. Default value is `false`.
 - **zowe_uninstall_before_install**: If you want to uninstall Zowe before installing a new version. Default value is `true`.
 - **zowe_custom_for_test**: If you want to customize the Zowe instance to run sanity test from zowe-install-packaging.
diff --git a/playbooks/install-fmid.yml b/playbooks/install-fmid.yml
index 715838ec28..80727e2848 100644
--- a/playbooks/install-fmid.yml
+++ b/playbooks/install-fmid.yml
@@ -83,6 +83,7 @@
   # Configure Zowe
   - import_role:
       name: configfmid
+    when: not skip_configfmid|default(False)
 
   # ============================================================================
   # Customize for testing
diff --git a/tests/installation/src/utils.ts b/tests/installation/src/utils.ts
index 9b41514184..34dd348da8 100644
--- a/tests/installation/src/utils.ts
+++ b/tests/installation/src/utils.ts
@@ -415,6 +415,7 @@ export async function installAndVerifySmpePtf(testcase: string, serverId: string
     serverId,
     {
       'zowe_build_remote': ZOWE_FMID,
+      'skip_configfmid': 'true',
       'skip_start': 'true',
       ...APIML_OIDC_VARS
     }