Skip to content

Commit

Permalink
Bugfix creation of sapadm user
Browse files Browse the repository at this point in the history
sapadm user wasn't created anymore by SDAF. Updated the when statement and aligned user properties with sapinst.

Shell: /bin/false
Description: SAP System Administrator
  • Loading branch information
hjstam authored and hdamecharla committed Nov 5, 2024
1 parent 6728093 commit 2da6303
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions deploy/ansible/roles-sap-os/2.5-sap-users/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,14 @@
group: "{{ item.group }}"
password: "{{ main_password | password_hash('sha512', inventory_hostname) }}"
append: false
shell: /bin/csh
shell: /bin/false
create_home: true
home: "{{ item.home }}"
loop:
- { tier: 'sapos', user: 'sapadm', uid: '{{ sapadm_uid }}', group: 'sapsys', home: '/home/sapadm', comment: 'SAP Host Agent' }
# TODO: add user for WebDisp Functionality
# - { tier: 'WEB', user: 'webadm', uid: '32002', group: 'sapsys', home: '/home/webadm', comment: 'SAP WebDisp Admin' }
- { tier: 'sapos', user: 'sapadm', uid: '{{ sapadm_uid }}', group: 'sapsys', home: '/home/sapadm', comment: 'SAP System Administrator' }
when:
- item.tier == "all"
- item.tier != "observer"

- item.tier == "all" or item.tier == tier
- node_tier != "observer"

# Create User assignment for Oracle ASM
- name: "2.5.1 SAP Users: - Create Oracle ASM Users Assignment"
Expand Down

0 comments on commit 2da6303

Please sign in to comment.