Skip to content

Commit

Permalink
Commit changes made by code formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 11, 2024
1 parent f062a21 commit e69938d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions ansible/roles/oasys-ap-dms-setup/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---

- import_tasks: oasys-dms-user-setup.yml
tags:
- oasys-asm-dms-user-creation

16 changes: 8 additions & 8 deletions ansible/roles/oasys-ap-dms-setup/tasks/oasys-dms-user-setup.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -40,4 +40,4 @@
}
main 2>&1 | logger -p local3.info -t ansible-dms-user
when: dms_password|length > 0
when: dms_password|length > 0

0 comments on commit e69938d

Please sign in to comment.