From e69938de64b9957c89d67e873350ecdf17ead66e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 11 Apr 2024 13:15:23 +0000 Subject: [PATCH] Commit changes made by code formatters --- ansible/roles/oasys-ap-dms-setup/tasks/main.yml | 2 -- .../tasks/oasys-dms-user-setup.yml | 16 ++++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ansible/roles/oasys-ap-dms-setup/tasks/main.yml b/ansible/roles/oasys-ap-dms-setup/tasks/main.yml index 307e61285..7851538d3 100644 --- a/ansible/roles/oasys-ap-dms-setup/tasks/main.yml +++ b/ansible/roles/oasys-ap-dms-setup/tasks/main.yml @@ -1,6 +1,4 @@ --- - - import_tasks: oasys-dms-user-setup.yml tags: - oasys-asm-dms-user-creation - diff --git a/ansible/roles/oasys-ap-dms-setup/tasks/oasys-dms-user-setup.yml b/ansible/roles/oasys-ap-dms-setup/tasks/oasys-dms-user-setup.yml index b635c0bd4..328e4f0cd 100644 --- a/ansible/roles/oasys-ap-dms-setup/tasks/oasys-dms-user-setup.yml +++ b/ansible/roles/oasys-ap-dms-setup/tasks/oasys-dms-user-setup.yml @@ -1,16 +1,16 @@ --- -- name: Get {{ dms_user }} password - ansible.builtin.shell: | +- name: Get {{ dms_user }} password + ansible.builtin.shell: | PATH=$PATH:/usr/local/bin aws secretsmanager get-secret-value --secret-id "/ec2/{{ ec2_name }}/asm-passwords" --query SecretString --output text | jq -r .{{ dms_user }} - register: dms_password_output + register: dms_password_output -- name: set password variable +- name: set password variable ansible.builtin.set_fact: dms_password: "{{ dms_password_output.stdout }}" -- name: Create {{ dms_user }} if password is not null - block: +- name: Create {{ dms_user }} if password is not null + block: - name: Create stage directories ansible.builtin.file: owner: oracle @@ -28,7 +28,7 @@ owner: "{{ oracle_install_user }}" group: "{{ oracle_install_group }}" - - name: Create {{ dms_user }} user in ASM + - name: Create {{ dms_user }} user in ASM become_user: "{{ oracle_install_user }}" ansible.builtin.shell: | set -eo pipefail @@ -40,4 +40,4 @@ } main 2>&1 | logger -p local3.info -t ansible-dms-user - when: dms_password|length > 0 \ No newline at end of file + when: dms_password|length > 0