deploy/ansible/roles-sap-os/2.6-sap-mounts/tasks/2.6.1-anf-mounts.yaml [161:212]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      'create_temp_folders': false
    }
  vars:
    primary_host:                     "{{ first_app_server_temp | first }}"
  when:
    - tier == 'sapos'
    - usr_sap_mountpoint is defined

# /*---------------------------------------------------------------------------8
# |                                                                            |
# |         Prepare for the sap_mnt mounts                                     |
# |         Create temporary directory structure                               |
# |         Mount the share, create the directory structure on share           |
# |         Unmount and clean up temporary directory structure                 |
# |                                                                            |
# +------------------------------------4--------------------------------------*/
- name:                                "ANF Mount: (sapmnt)"
  block:
    - name:                            "ANF Mount: Create /saptmp"
      ansible.builtin.file:
        path:                          "/saptmp"
        state:                         directory
        mode:                          0755
        group:                         sapsys

    - name:                            "ANF Mount: (sapmnt)"
      block:
        - name:                        "ANF Mount: Filesystems on ANF (sapmnt)"
          ansible.posix.mount:
            src:                       "{{ sap_mnt }}"
            path:                      "/saptmp"
            fstype:                    "nfs4"
            opts:                      "rw,hard,rsize=65536,wsize=65536,sec=sys,vers=4.1,tcp"
            state:                     mounted
      rescue:
        - name:                        "ANF Mount: Clear the cache of the nfsidmap daemon (ANF)"
          ansible.builtin.shell: |
                                       nfsidmap -c
        - name:                        "ANF Mount: Ensure the rpcbind service is restarted"
          ansible.builtin.systemd:
            name:                      rpcbind
            daemon-reload:             true
            state:                     restarted

    - name:                            "ANF Mount: Create SAP Directories (spmnt & usrsap)"
      ansible.builtin.file:
        path:                          "{{ item.path }}"
        state:                         directory
        mode:                          0755
      loop:
        - { path: '/saptmp/sapmnt{{ sap_sid | upper }}'                              }
        - { path: '/saptmp/usrsap{{ sap_sid | upper }}'                              }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



deploy/ansible/roles-sap-os/2.6-sap-mounts/tasks/2.6.8-anf-mounts-simplemount.yaml [156:207]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      'create_temp_folders': false
    }
  vars:
    primary_host:                     "{{ first_app_server_temp | first }}"
  when:
    - tier == 'sapos'
    - usr_sap_mountpoint is defined

# /*---------------------------------------------------------------------------8
# |                                                                            |
# |         Prepare for the sap_mnt mounts                                     |
# |         Create temporary directory structure                               |
# |         Mount the share, create the directory structure on share           |
# |         Unmount and clean up temporary directory structure                 |
# |                                                                            |
# +------------------------------------4--------------------------------------*/
- name:                                "ANF Mount: (sapmnt)"
  block:
    - name:                            "ANF Mount: Create /saptmp"
      ansible.builtin.file:
        path:                          "/saptmp"
        state:                         directory
        mode:                          0755
        group:                         sapsys

    - name:                            "ANF Mount: (sapmnt)"
      block:
        - name:                        "ANF Mount: Filesystems on ANF (sapmnt)"
          ansible.posix.mount:
            src:                       "{{ sap_mnt }}"
            path:                      "/saptmp"
            fstype:                    "nfs4"
            opts:                      "rw,hard,rsize=65536,wsize=65536,sec=sys,vers=4.1,tcp"
            state:                     mounted
      rescue:
        - name:                        "ANF Mount: Clear the cache of the nfsidmap daemon (ANF)"
          ansible.builtin.shell: |
                                       nfsidmap -c
        - name:                        "ANF Mount: Ensure the rpcbind service is restarted"
          ansible.builtin.systemd:
            name:                      rpcbind
            daemon-reload:             true
            state:                     restarted

    - name:                            "ANF Mount: Create SAP Directories (spmnt & usrsap)"
      ansible.builtin.file:
        path:                          "{{ item.path }}"
        state:                         directory
        mode:                          0755
      loop:
        - { path: '/saptmp/sapmnt{{ sap_sid | upper }}'                              }
        - { path: '/saptmp/usrsap{{ sap_sid | upper }}'                              }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



