ceph-ansible/roles/ceph-osd/tasks
Benoît Knecht 54b400089c ceph-osd: Fix start_osds.yml in check mode
This construct doesn't work as intended since ansible/ansible#74212:

```
ceph_osd_ids.stdout | default('{}') | from_json
```

That PR made the `command` module return `stdout` even in check mode (setting
it to the empty string), so `default()` has no effect in that case and
`from_json()` fails to parse an empty string.

Instead, `default()` needs to be invoked with its second argument set to
`True`, so that it replaces any `False` value (such as an empty string) with
its first argument:

```
ceph_osd_ids.stdout | default('{}', True) | from_json
```

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 0b3a608216)
2022-02-16 09:50:24 +01:00
..
scenarios ceph-osd: add prepare_osd tag to lvm-batch scenario 2021-03-12 09:19:55 +01:00
common.yml common: do not log keyring secret 2021-08-11 14:59:25 -04:00
container_options_facts.yml ceph-osd: set container objectstore env variables 2020-01-20 13:59:44 -05:00
crush_rules.yml library: add ceph_crush_rule module 2020-12-01 17:52:41 +01:00
main.yml Use ansible_facts 2021-03-26 00:04:49 +01:00
openstack_config.yml common: do not log keyring secret 2021-08-11 14:59:25 -04:00
start_osds.yml ceph-osd: Fix start_osds.yml in check mode 2022-02-16 09:50:24 +01:00
system_tuning.yml Use ansible_facts 2021-03-26 00:04:49 +01:00
systemd.yml containers: introduce target systemd unit 2021-08-18 13:42:50 -04:00