|
45 | 45 | --type merge
|
46 | 46 | --patch '{"spec": {"paused": true}}'
|
47 | 47 | register: kubectl_patch_pause_cluster
|
48 |
| - changed_when: kubectl_patch_pause_cluster.stdout_lines | select('match', '(?!.*\\(no change\\)$') | length > 0 |
| 48 | + changed_when: kubectl_patch_pause_cluster.stdout_lines | select('match', '(?!.*\\(no change\\)$)') | length > 0 |
49 | 49 |
|
50 | 50 | - name: Copy cloud credentials secret to new namespace
|
51 | 51 | ansible.builtin.command: kubectl apply -f -
|
|
120 | 120 | azimuth_cluster_status_patch:
|
121 | 121 | status: "{{ cluster.status }}"
|
122 | 122 | register: kubectl_patch_cluster_status
|
123 |
| - changed_when: kubectl_patch_cluster_status.stdout_lines | select('match', '(?!.*\\(no change\\)$') | length > 0 |
| 123 | + changed_when: kubectl_patch_cluster_status.stdout_lines | select('match', '(?!.*\\(no change\\)$)') | length > 0 |
124 | 124 |
|
125 | 125 | - name: Get UID of new cluster object
|
126 | 126 | ansible.builtin.command: >-
|
|
148 | 148 | uid: "{{ azimuth_cluster_new_uid.stdout }}"
|
149 | 149 | blockOwnerDeletion: true
|
150 | 150 | register: kubectl_patch_owner_refs
|
151 |
| - changed_when: kubectl_patch_owner_refs.stdout_lines | select('match', '(?!.*\\(no change\\)$') | length > 0 |
| 151 | + changed_when: kubectl_patch_owner_refs.stdout_lines | select('match', '(?!.*\\(no change\\)$)') | length > 0 |
152 | 152 |
|
153 | 153 | - name: Resume new cluster
|
154 | 154 | ansible.builtin.command: >-
|
|
157 | 157 | --type merge
|
158 | 158 | --patch '{"spec": {"paused": false}}'
|
159 | 159 | register: kubectl_patch_resume_cluster
|
160 |
| - changed_when: kubectl_patch_resume_cluster.stdout_lines | select('match', '(?!.*\\(no change\\)$') | length > 0 |
| 160 | + changed_when: kubectl_patch_resume_cluster.stdout_lines | select('match', '(?!.*\\(no change\\)$)') | length > 0 |
161 | 161 |
|
162 | 162 | - name: Remove old cluster resources
|
163 | 163 | ansible.builtin.command: kubectl delete -f -
|
|
0 commit comments