riteshchikatwar

Untitled

Jan 22nd, 2020
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. - hosts: hosts
  2. remote_user: root
  3. tasks:
  4. - name: Gather self-heal facts about all gluster hosts in the cluster
  5. gluster_heal_info:
  6. name: "{{ item }}"
  7. status_filter: self-heal
  8. register: self_heal_status
  9. with_items:
  10. - data
  11. - debug:
  12. var: " self_heal_status.results[0].glusterfs.heal_info | map(attribute='no_of_entries') | list "
Advertisement
Add Comment
Please, Sign In to add comment