ceph-ansible/roles
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
..
ceph-client common: do not log keyring secret 2021-08-11 17:33:34 +02:00
ceph-common Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-config Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-container-common container: explicitly pull monitoring images 2021-08-23 14:12:45 -04:00
ceph-container-engine ceph-container-engine: allow override container_package_name and container_service_name 2021-08-18 09:12:00 +02:00
ceph-crash container: align systemd units with rpm 2021-12-14 13:46:27 +01:00
ceph-dashboard dashboard: allow disabling of unused features 2021-09-29 12:02:16 +02:00
ceph-defaults nfs-ganesha: fix debian based OS deployments 2022-01-19 13:42:10 +01:00
ceph-facts ceph-facts: Fix get_def_crush_rule_name.yml in check mode 2022-02-07 14:13:19 +01:00
ceph-fetch-keys fix broken ceph-fetch-keys role 2020-12-14 17:36:17 +01:00
ceph-grafana ceph-grafana: Add proxy env vars to grafana service template 2022-02-07 14:09:22 +01:00
ceph-handler ceph-handler: Fix check mode 2022-01-06 10:46:55 +01:00
ceph-infra Use ansible_facts 2021-03-08 20:54:02 +01:00
ceph-iscsi-gw Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-mds Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-mgr Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-mon Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-nfs nfs-ganesha: fix debian based OS deployments 2022-01-19 13:42:10 +01:00
ceph-node-exporter container: align systemd units with rpm 2021-12-14 13:46:27 +01:00
ceph-osd ceph-osd: Fix crush_rules.yml in check mode 2022-02-07 14:13:19 +01:00
ceph-prometheus Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-rbd-mirror Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-rgw Use upstream config_template collection 2022-01-18 20:22:10 +01:00
ceph-rgw-loadbalancer ceph-rgw-loadbalancer: Fix rgw_ports fact 2021-04-15 10:39:08 +02:00
ceph-validate validate: support obs repository 2021-12-02 08:51:45 +01:00