From e9bced043bfd16d2bd69ae2df73b41c1be89312d Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Aug 16 2022 14:29:22 +0000 Subject: communishift: Configure AWS EFS to continue on fail Signed-off-by: David Kirwan Signed-off-by: Lenka Segura Signed-off-by: Patrik Polakovic --- diff --git a/roles/communishift/library/communishift_storage_efs.py b/roles/communishift/library/communishift_storage_efs.py index ecedadd..3c5c71d 100644 --- a/roles/communishift/library/communishift_storage_efs.py +++ b/roles/communishift/library/communishift_storage_efs.py @@ -151,7 +151,7 @@ def run_module(): module.exit_json(**result) except efs_client.exceptions.AccessPointAlreadyExists: result["message"] = "AWS EFS AccessPoint already exists." - module.fail_json(**result) + module.fail_json("", **result) def main(): diff --git a/roles/communishift/tasks/create-efs.yml b/roles/communishift/tasks/create-efs.yml index 1418eee..384524d 100644 --- a/roles/communishift/tasks/create-efs.yml +++ b/roles/communishift/tasks/create-efs.yml @@ -28,7 +28,7 @@ aws_region: "{{ communishift_region }}" aws_efs_filesystem_id: "{{ create_efs_filesystem_response['efs']['file_system_id'] }}" register: create_efs_accesspoint_response - + ignore_errors: true - name: Print the response from the AWS EFS AccessPoint creation debug: