ceph-ansible/roles
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
..
ceph-client common: do not log keyring secret 2021-08-11 14:59:25 -04:00
ceph-common common: remove legacy repositories 2021-12-15 13:36:02 +01:00
ceph-config Use ansible_facts 2021-03-26 00:04:49 +01:00
ceph-container-common container: explicitly pull monitoring images 2021-08-23 16:08:10 -04:00
ceph-container-engine ceph-container-engine: allow override container_package_name and container_service_name 2021-09-08 15:35:04 +02:00
ceph-crash container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-dashboard dashboard: retry setting rgw-credentials 2021-09-30 18:30:38 +02:00
ceph-defaults nfs-ganesha: fix debian based OS deployments 2022-01-31 09:39:26 +01:00
ceph-facts ceph-facts: Fix get_def_crush_rule_name.yml in check mode 2022-02-16 09:50:24 +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-09 11:34:57 +01:00
ceph-handler ceph-handler: Fix check mode 2022-02-16 09:44:52 +01:00
ceph-infra Use ansible_facts 2021-03-26 00:04:49 +01:00
ceph-iscsi-gw container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-mds container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-mgr container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-mon container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-nfs nfs-ganesha: fix debian based OS deployments 2022-01-31 09:39:26 +01:00
ceph-node-exporter container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-osd ceph-osd: Fix crush_rules.yml in check mode 2022-02-16 09:50:24 +01:00
ceph-prometheus container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-rbd-mirror container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-rgw container: align systemd units with rpm 2021-12-15 13:49:37 +01:00
ceph-rgw-loadbalancer ceph-rgw-loadbalancer: Fix rgw_ports fact 2021-04-15 13:20:45 +02:00
ceph-validate validate: support obs repository 2022-02-15 18:19:11 +01:00