File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 977977 - " {{ ansible_failed_result.stdout_lines }}"
978978
979979- name : Configure for high availability
980+ any_errors_fatal : true
980981 when : mssql_ha_configure | bool
981982 block :
982983 # Required for configure_ag.j2 to set WRITE_LEASE_VALIDITY based on
10711072 {%- endif -%}
10721073
10731074 - name : Configure availability group on the primary node
1074- any_errors_fatal : true
10751075 when : mssql_ha_replica_type == 'primary'
10761076 block :
10771077 - name : Ensure the package {{ __mssql_server_ha_packages }}
11431143 # In the case of fail over the primary replica moves to a different server.
11441144 # This block identifies the current primary replica and works on it.
11451145 - name : Configure availability group on the current primary replica
1146- any_errors_fatal : true
11471146 block :
11481147 - name : Get the current primary replica in SQL
11491148 vars :
Original file line number Diff line number Diff line change 216216 that : " 'Started' in __pcs_status_virtualip.stdout"
217217
218218 - name : Move the virtualip resource
219- command : pcs resource move virtualip
219+ command : >-
220+ pcs resource move
221+ {% if (ansible_distribution in ['CentOS', 'RedHat']) and
222+ (ansible_distribution_major_version is version('9', '>=')) %}
223+ move-with-constraint
224+ {% endif %}
225+ virtualip
220226 register : __pcs_move
221227 run_once : true
222228 changed_when : true
You can’t perform that action at this time.
0 commit comments