deploy/ansible/playbook_05_00_00_sap_scs_install.yaml [353:403]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                  loop:                    "{{ all_sids }}"
                  loop_control:
                    loop_var:              sid_to_be_deployed

                - name:                "SCS Installation Playbook: - Ensure scs-install-done flag exists"
                  delegate_to:         localhost
                  become:              false
                  ansible.builtin.file:
                    path:              "{{ _workspace_directory }}/.progress/scs-install-done"
                    state:             touch
                    mode:              0755
                  when:
                    - scs_already_installed is defined or (scs_installation.rc is defined and scs_installation.rc == 0)

              always:
                - name:                "SCS Installation Playbook: - Get the Error lines from installation output"
                  ansible.builtin.set_fact:
                    error_lines:       "{{ error_lines | default([]) + [item] }}"
                  with_items:          "{{ scs_installation.stdout_lines }}"
                  when:
                    - scs_installation.stdout_lines is defined
                    - '"ERROR" or "html" in item'
                    - scs_installation.rc > 0

                - name:                "SCS Installation Playbook: - Run post installation routines"
                  ansible.builtin.include_role:
                    name:              roles-sap/windows/7.0.0-post-install
                  vars:
                    suffix:            "_SCS"
                    tier:              'scs'
                    domain_user_password:  "{{ hostvars.localhost.winadm_password }}"
                    work_log_component_name: "ASCS{{ scs_instance_number }}"

                - name:                "SCS Installation Playbook: - Show errors from the installation"
                  ansible.builtin.debug:
                    msg:               "{{ error_lines }}"
                  when:
                    - error_lines is defined

                - name:                "SCS Install: Rename sapinst_logs Folder with TimeStamp"
                  ansible.windows.win_shell: |
                                       Rename-Item -Path .\sapinst_logs -NewName "sapinst_logs_$(get-date -f yyyy_MM_dd_HH_mm_ss)"
                  args:
                    chdir:             '{{ log_dir_windows }}'
                    removes:           '{{ log_dir_windows }}\sapinst_logs'
                  register:            sapinst_log_name
                  failed_when:         sapinst_log_name.rc > 0
                  when:
                    - ansible_os_family == "Windows"
              tags:
                - 5.0.0-scs-install
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



deploy/ansible/playbook_05_00_00_sap_scs_install.yaml [660:710]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              loop:                    "{{ all_sids }}"
              loop_control:
                loop_var:              sid_to_be_deployed

            - name:                "SCS Installation Playbook: - Ensure scs-install-done flag exists"
              delegate_to:         localhost
              become:              false
              ansible.builtin.file:
                path:              "{{ _workspace_directory }}/.progress/scs-install-done"
                state:             touch
                mode:              0755
              when:
                - scs_already_installed is defined or (scs_installation.rc is defined and scs_installation.rc == 0)

          always:
            - name:                "SCS Installation Playbook: - Get the Error lines from installation output"
              ansible.builtin.set_fact:
                error_lines:       "{{ error_lines | default([]) + [item] }}"
              with_items:          "{{ scs_installation.stdout_lines }}"
              when:
                - scs_installation.stdout_lines is defined
                - '"ERROR" or "html" in item'
                - scs_installation.rc > 0

            - name:                "SCS Installation Playbook: - Run post installation routines"
              ansible.builtin.include_role:
                name:              roles-sap/windows/7.0.0-post-install
              vars:
                suffix:            "_SCS"
                tier:              'scs'
                domain_user_password:  "{{ hostvars.localhost.winadm_password }}"
                work_log_component_name: "ASCS{{ scs_instance_number }}"

            - name:                "SCS Installation Playbook: - Show errors from the installation"
              ansible.builtin.debug:
                msg:               "{{ error_lines }}"
              when:
                - error_lines is defined

            - name:                "SCS Install: Rename sapinst_logs Folder with TimeStamp"
              ansible.windows.win_shell: |
                                    Rename-Item -Path .\sapinst_logs -NewName "sapinst_logs_$(get-date -f yyyy_MM_dd_HH_mm_ss)"
              args:
                chdir:             '{{ log_dir_windows }}'
                removes:           '{{ log_dir_windows }}\sapinst_logs'
              register:            sapinst_log_name
              failed_when:         sapinst_log_name.rc > 0
              when:
                - ansible_os_family == "Windows"
          tags:
            - 5.0.0-scs-install
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



