From cf56531ff1146ddae1fbabd39d9ae78baacf5ea3 Mon Sep 17 00:00:00 2001 From: Marc Ransome Date: Mon, 28 Jun 2021 17:21:07 +0100 Subject: [PATCH] Add assertion for required deploy-time variable --- roles/deploy/defaults/main.yml | 6 ------ roles/deploy/tasks/main.yml | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/roles/deploy/defaults/main.yml b/roles/deploy/defaults/main.yml index 9b90bd1..4905a9b 100644 --- a/roles/deploy/defaults/main.yml +++ b/roles/deploy/defaults/main.yml @@ -178,12 +178,6 @@ tuxedo_log_files: cloudwatch_log_group_name: frontend-tuxedo-xml-ulog tuxedo_service_group: tuxedo -tuxedo_service_users: - - ceu - - chd - - ewf - - xml - tuxedo_service_ipc_key_start: 48000 tuxedo_service_ipc_key_increment: 100 tuxedo_service_domain_port_start: 38000 diff --git a/roles/deploy/tasks/main.yml b/roles/deploy/tasks/main.yml index 54b08f1..8a0dfc9 100644 --- a/roles/deploy/tasks/main.yml +++ b/roles/deploy/tasks/main.yml @@ -10,6 +10,7 @@ - name: Check required variables are set assert: that: + - tuxedo_service_users is defined and tuxedo_service_users | length > 0 - environment_name is defined and environment_name | trim | length > 0 - application_artifact_path is defined and application_artifact_path | trim | length > 0 - application_configs_path is defined and application_configs_path | trim | length > 0