Skip to content

Commit 85413e0

Browse files
committed
Updated it to use the ONTAP Ansible collection as opposed to invoking 'curl' commands to get the SnapMirror information.
1 parent 32ac682 commit 85413e0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Infrastructure_as_Code/Ansible/snapmirror_report/process_region.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
- name: Get all the FSxNs for the specified region.
1919
ansible.builtin.shell:
20-
cmd: aws fsx describe-file-systems --region {{ region }} --query 'FileSystems[*].{ID:FileSystemId,IP:OntapConfiguration.Endpoints.Management.IpAddresses[0]}' --output text | sed -e '/^$/d'
20+
cmd: aws fsx describe-file-systems --region {{ region }} --query 'FileSystems[*].{ID:FileSystemId,IP:OntapConfiguration.Endpoints.Management.IpAddresses[0]}' --output text | sed -e '/^$/d'
2121
register: fsxn_ids_per_region
2222

2323
- name: Get the SnapMirror relationships for each FSxN.
@@ -28,11 +28,11 @@
2828
hostname: "{{ item.split('\t')[1] }}"
2929
validate_certs: false
3030
fields:
31-
- source
32-
- destination
33-
- healthy
34-
- lag_time
35-
- state
31+
- source
32+
- destination
33+
- healthy
34+
- lag_time
35+
- state
3636
gather_subset:
3737
- snapmirror/relationships
3838
loop: "{{ fsxn_ids_per_region.stdout_lines }}"

0 commit comments

Comments
 (0)