ceph-ansible/roles/ceph-handler
Guillaume Abrioux 709deb90cc handler: refact check_socket_non_container
the `stat --printf=%n` returns something like following:

```
ok: [osd0] => changed=false
  cmd: |-
    stat --printf=%n /var/run/ceph/ceph-osd*.asok
  delta: '0:00:00.009388'
  end: '2020-10-06 06:18:28.109500'
  failed_when_result: false
  rc: 0
  start: '2020-10-06 06:18:28.100112'
  stderr: ''
  stderr_lines: <omitted>
  stdout: /var/run/ceph/ceph-osd.2.asok/var/run/ceph/ceph-osd.5.asok
  stdout_lines: <omitted>
```

it makes the next task "check if the ceph osd socket is in-use" grep
like this:

```
ok: [osd0] => changed=false
  cmd:
  - grep
  - -q
  - /var/run/ceph/ceph-osd.2.asok/var/run/ceph/ceph-osd.5.asok
  - /proc/net/unix
```

which will obviously fail because this path never exists. It makes the
OSD handler broken.

Let's use `find` module instead.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 46d4d97da9)
2020-10-14 10:31:05 +02:00
..
handlers ceph-handler: add missing condition on ceph-crash 2020-09-10 20:35:04 -04:00
meta meta: set the right minimum ansible version required for galaxy 2018-12-11 09:59:25 +01:00
tasks handler: refact check_socket_non_container 2020-10-14 10:31:05 +02:00
templates ceph-handler: remove iscsigws restart scripts 2020-07-27 09:33:00 -04:00
LICENSE add ceph-handler role 2018-09-28 15:15:49 +00:00
README.md add ceph-handler role 2018-09-28 15:15:49 +00:00

README.md

Ansible role: ceph-handler

Documentation is available at http://docs.ceph.com/ceph-ansible/.