|
18 | 18 | - name: scale_remotemount_debug | Storage Cluster | Print the Cluster Information |
19 | 19 | debug: |
20 | 20 | msg: "{{ owning_cluster_info }}" |
21 | | - when: scale_remotemount_debug is true |
| 21 | + when: scale_remotemount_debug is defined and scale_remotemount_debug | bool |
22 | 22 |
|
23 | 23 | - name: Client Cluster (access) | GET the Cluster Information |
24 | 24 | uri: |
|
36 | 36 | - name: scale_remotemount_debug | Client Cluster | Print the Cluster Information |
37 | 37 | debug: |
38 | 38 | msg: "{{ access_cluster_info }}" |
39 | | - when: scale_remotemount_debug is true |
| 39 | + when: scale_remotemount_debug is defined and scale_remotemount_debug | bool |
40 | 40 |
|
41 | 41 | - set_fact: |
42 | 42 | access_cluster_name: "{{ access_cluster_info.json.cluster.clusterSummary.clusterName }}" |
|
45 | 45 | - name: scale_remotemount_debug | Print out the Storage and Client Cluster Names |
46 | 46 | debug: |
47 | 47 | msg: "Access: {{ access_cluster_name }} and Owning: {{ owning_cluster_name }}" |
48 | | - when: scale_remotemount_debug is true |
| 48 | + when: scale_remotemount_debug is defined and scale_remotemount_debug | bool |
49 | 49 |
|
50 | 50 | # |
51 | 51 | # When scale_remotemount_forceRun, do some cleanup to properly unmount and remove things |
|
119 | 119 | - name: scale_remotemount_debug | Print out the Client Cluster (access) Public Key results |
120 | 120 | debug: |
121 | 121 | var: accesskey_result |
122 | | - when: scale_remotemount_debug is true |
| 122 | + when: scale_remotemount_debug is defined and scale_remotemount_debug | bool |
123 | 123 |
|
124 | 124 | - name: Storage Cluster (owner) | Send the Public Key of the Client Cluster (access) |
125 | 125 | uri: |
|
172 | 172 | - name: scale_remotemount_debug | Print out the Storage Cluster (owing) Public Key results |
173 | 173 | debug: |
174 | 174 | var: owningkey_result |
175 | | - when: scale_remotemount_debug is true |
| 175 | + when: scale_remotemount_debug is defined and scale_remotemount_debug | bool |
176 | 176 |
|
177 | 177 | - name: Step 3 |
178 | 178 | debug: |
|
191 | 191 | - name: scale_remotemount_debug | Print out the remote clusters |
192 | 192 | debug: |
193 | 193 | msg: "{{ remote_clusters_result.json }}" |
194 | | - when: scale_remotemount_debug is true |
| 194 | + when: scale_remotemount_debug is defined and scale_remotemount_debug | bool |
195 | 195 |
|
196 | 196 | # The remote_clusters_results is in an array, so looping here incase there are multiple remote clusters |
197 | 197 | # We want to delete the one where the owningCluster name matches what we are trying to do a remote mount on |
|
223 | 223 | - name: scale_remotemount_debug | Print out the array storing the nodes in the Storage Cluster (owning) |
224 | 224 | debug: |
225 | 225 | msg: "{{ owning_nodes_name }}" |
226 | | - when: scale_remotemount_debug is true |
| 226 | + when: scale_remotemount_debug is defined and scale_remotemount_debug | bool |
227 | 227 |
|
228 | 228 | - name: Client Cluster (access) | Add Storage Cluster as a Remote Cluster |
229 | 229 | uri: |
|
0 commit comments