deploy/ansible/playbook_04_00_00_db_install.yaml [199:249]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      block:
        - name:                         "Database Installation Playbook: - Setting the facts"
          ansible.builtin.set_fact:
            tier:                       ha
            main_password:              "{{ hostvars.localhost.sap_password }}"
            password_ha_db_cluster:     "{{ hostvars.localhost.db_cluster_password }}"
            primary_instance_name:      "{{ ansible_play_hosts_all[0] }}"         # Setting up Primary Instance Name
            secondary_instance_name:    "{{ ansible_play_hosts_all[1] }}"         # Setting up Secondary Instance Name
            # fencing_spn_client_id:     "{% if not use_msi_for_clusters %}{{ hostvars.localhost.sap_fencing_spn_client_id }}{% endif %}"
            # fencing_spn_client_pwd:    "{% if not use_msi_for_clusters %}{{ hostvars.localhost.sap_fencing_spn_pwd }}{%- endif %}"
            # fencing_spn_tenant_id:     "{% if not use_msi_for_clusters %}{{ hostvars.localhost.sap_fencing_spn_tenant_id }}{%- endif %}"

        - name:                         "Database Installation Playbook: - Setting the facts for fencing"
          ansible.builtin.set_fact:
            fencing_spn_client_id:      "{{ hostvars.localhost.sap_fencing_spn_client_id }}"
            fencing_spn_client_pwd:     "{{ hostvars.localhost.sap_fencing_spn_pwd }}"
            fencing_spn_tenant_id:      "{{ hostvars.localhost.sap_fencing_spn_tenant_id }}"
          when:
                                        - database_cluster_type == "AFA"
                                        - not use_msi_for_clusters

        - name:                        "Database Installation Playbook: - Ensure the correct repositories are set"
          ansible.builtin.include_role:
            name:                      roles-os/1.3-repository
          tags:
            - 1.3-repository

        - name:                        "Database Installation Playbook: - Ensure the correct packages are installed"
          ansible.builtin.include_role:
            name:                      roles-os/1.4-packages
          tags:
            - 1.4-packages

        # Setup the kernel parameters required for pacemaker cluster VMs
        - name:                        "Database Installation Playbook: - Ensure the correct kernel parameters are set"
          ansible.builtin.include_role:
            name:                      roles-os/1.9-kernelparameters
          tags:
            - 1.9-kernelparameters

        - name:                        "Database Installation Playbook: - Ensure the needed services are enabled/disabled"
          ansible.builtin.include_role:
            name:                      roles-os/1.16-services
          tags:
            - 1.16-services

        - name:                        "Database Installation Playbook: - Ensure the accounts are present"
          ansible.builtin.include_role:
            name:                      roles-os/1.11-accounts
          tags:
            - 1.11-accounts
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



deploy/ansible/playbook_04_00_00_db_install.yaml [464:515]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      block:
        - name:                        "Database Installation Playbook: - Setting the facts"
          ansible.builtin.set_fact:
            tier:                       ha
            main_password:              "{{ hostvars.localhost.sap_password }}"
            password_ha_db_cluster:     "{{ hostvars.localhost.db_cluster_password }}"
            primary_instance_name:      "{{ ansible_play_hosts_all[0] }}"         # Setting up Primary Instance Name
            secondary_instance_name:    "{{ ansible_play_hosts_all[1] }}"         # Setting up Secondary Instance Name
            # root_password:              "{{ hostvars.localhost.root_password }}"
            # fencing_spn_client_id:     "{% if not use_msi_for_clusters %}{{ hostvars.localhost.sap_fencing_spn_client_id }}{% endif %}"
            # fencing_spn_client_pwd:    "{% if not use_msi_for_clusters %}{{ hostvars.localhost.sap_fencing_spn_pwd }}{%- endif %}"
            # fencing_spn_tenant_id:     "{% if not use_msi_for_clusters %}{{ hostvars.localhost.sap_fencing_spn_tenant_id }}{%- endif %}"

        - name:                        "Database Installation Playbook: - Setting the facts for fencing"
          ansible.builtin.set_fact:
            fencing_spn_client_id:      "{{ hostvars.localhost.sap_fencing_spn_client_id }}"
            fencing_spn_client_pwd:     "{{ hostvars.localhost.sap_fencing_spn_pwd }}"
            fencing_spn_tenant_id:      "{{ hostvars.localhost.sap_fencing_spn_tenant_id }}"
          when:
                                        - database_cluster_type == "AFA"
                                        - not use_msi_for_clusters

        - name:                        "Database Installation Playbook: - Ensure the correct repositories are set"
          ansible.builtin.include_role:
            name:                      roles-os/1.3-repository
          tags:
            - 1.3-repository

        - name:                        "Database Installation Playbook: - Ensure the correct packages are installed"
          ansible.builtin.include_role:
            name:                      roles-os/1.4-packages
          tags:
            - 1.4-packages

        # Setup the kernel parameters required for pacemaker cluster VMs
        - name:                        "Database Installation Playbook: - Ensure the correct kernel parameters are set"
          ansible.builtin.include_role:
            name:                      roles-os/1.9-kernelparameters
          tags:
            - 1.9-kernelparameters

        - name:                        "Database Installation Playbook: - Ensure the needed services are enabled/disabled"
          ansible.builtin.include_role:
            name:                      roles-os/1.16-services
          tags:
            - 1.16-services

        - name:                        "Database Installation Playbook: - Ensure the accounts are present"
          ansible.builtin.include_role:
            name:                      roles-os/1.11-accounts
          tags:
            - 1.11-accounts
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



