ceph-ansible/roles/ceph-facts/tasks
Benoît Knecht 7684d892c0 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>
2022-02-07 14:13:19 +01:00
..
container_binary.yml docker2podman: skip some role imports from handler 2021-04-09 15:28:50 +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 14:02:30 +02:00
facts.yml common: disable/enable pg_autoscaler 2021-07-20 07:37:07 +02:00
get_def_crush_rule_name.yml ceph-facts: Fix get_def_crush_rule_name.yml in check mode 2022-02-07 14:13:19 +01:00
grafana.yml make grafana network a configurable option 2021-12-02 08:53:58 +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-10-28 21:47:01 +02:00
set_radosgw_address.yml multisite: fix bug during switch2containers 2021-06-17 01:49:29 +02:00