Skip to content

Commit

Permalink
sap_storage_setup: fix: throttle NFS mount tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ja9fuchs committed Sep 21, 2023
1 parent 6df653f commit f7e8f66
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
register: sap_storage_setup_tmpnfs_register

- name: SAP Storage Setup - ({{ nfs_item.name }}) Attach NFS host root for subdirectory verification/creation
throttle: 1 # avoid NFS request flooding and silent timeout failures (observed on MS Azure Files)
ansible.posix.mount:
path: "{{ sap_storage_setup_tmpnfs_register.path }}"
src: "{{ attach_item.nfs_server | default(sap_storage_setup_nfs_server) }}"
Expand Down Expand Up @@ -154,6 +155,7 @@
always:

- name: SAP Storage Setup - ({{ nfs_item.name }}) Remove temporary NFS mount
throttle: 1 # avoid NFS request flooding and silent timeout failures (observed on MS Azure Files)
ansible.posix.mount:
path: "{{ sap_storage_setup_tmpnfs_register.path }}"
state: absent
Expand All @@ -175,6 +177,7 @@
# #####

- name: SAP Storage Setup - ({{ nfs_item.name }}) Mount NFS
throttle: 1 # avoid NFS request flooding and silent timeout failures (observed on MS Azure Files)
ansible.posix.mount:
path: "{{ mount_item.mountpoint }}"
src: "{{ nfs_server }}/{{ mount_item.mount_src | regex_replace('^/', '') }}"
Expand Down

0 comments on commit f7e8f66

Please sign in to comment.