ceph-ansible/roles/ceph-facts/tasks
Benoît Knecht df0901e879 ceph-facts: Fix get_def_crush_rule_name.yml in check mode
This construct doesn't work as intended since ansible/ansible#74212:

```
item.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:

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

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 7684d892c0)
2022-02-16 09:50:24 +01:00
..
container_binary.yml docker2podman: skip some role imports from handler 2021-04-12 13:30:09 +02:00
convert_grafana_server_group_name.yml ceph-facts: fix grafana group conversion 2020-12-10 16:51:16 +01:00
devices.yml ceph-facts: move device facts to its own file 2021-07-02 22:21:20 +02:00
facts.yml common: disable/enable pg_autoscaler 2021-07-20 11:04:25 -04:00
get_def_crush_rule_name.yml ceph-facts: Fix get_def_crush_rule_name.yml in check mode 2022-02-16 09:50:24 +01:00
grafana.yml make grafana network a configurable option 2022-01-19 10:08:05 +01:00
main.yml ceph-facts: fix grafana group conversion 2020-12-10 16:51:16 +01:00
set_monitor_address.yml update: support --limit on monitor nodes 2021-11-03 08:48:38 +01:00
set_radosgw_address.yml multisite: fix bug during switch2containers 2021-06-17 08:15:09 +02:00