when: inventory_hostname in groups.get(mon_group_name, [])
- name: check if the ceph mon socket is in-use
- command: fuser --silent {{ mon_socket_stat.stdout }}
+ command: grep -q {{ mon_socket_stat.stdout }} /proc/net/unix
changed_when: false
failed_when: false
check_mode: no
when: inventory_hostname in groups.get(osd_group_name, [])
- name: check if the ceph osd socket is in-use
- command: fuser --silent {{ osd_socket_stat.stdout }}
+ command: grep -q {{ osd_socket_stat.stdout }} /proc/net/unix
changed_when: false
failed_when: false
check_mode: no
when: inventory_hostname in groups.get(mds_group_name, [])
- name: check if the ceph mds socket is in-use
- command: fuser --silent {{ mds_socket_stat.stdout }}
+ command: grep -q {{ mds_socket_stat.stdout }} /proc/net/unix
changed_when: false
failed_when: false
check_mode: no
when: inventory_hostname in groups.get(rgw_group_name, [])
- name: check if the ceph rgw socket is in-use
- command: fuser --silent {{ rgw_socket_stat.stdout }}
+ command: grep -q {{ rgw_socket_stat.stdout }} /proc/net/unix
changed_when: false
failed_when: false
check_mode: no
when: inventory_hostname in groups.get(mgr_group_name, [])
- name: check if the ceph mgr socket is in-use
- command: fuser --silent {{ mgr_socket_stat.stdout }}
+ command: grep -q {{ mgr_socket_stat.stdout }} /proc/net/unix
changed_when: false
failed_when: false
check_mode: no
when: inventory_hostname in groups.get(rbdmirror_group_name, [])
- name: check if the ceph rbd mirror socket is in-use
- command: fuser --silent {{ rbd_mirror_socket_stat.stdout }}
+ command: grep -q {{ rbd_mirror_socket_stat.stdout }} /proc/net/unix
changed_when: false
failed_when: false
check_mode: no
when: inventory_hostname in groups.get(nfs_group_name, [])
- name: check if the ceph nfs ganesha socket is in-use
- command: fuser --silent {{ nfs_socket_stat.stdout }}
+ command: grep -q {{ nfs_socket_stat.stdout }} /proc/net/unix
changed_when: false
failed_when: false
check_mode: no