mirror of https://github.com/ceph/ceph-ansible.git
e751b2960a
Right now, under certain OS and Ansible versions, ie Rocky Linux and
ansible-core 2.17, `devices_check` variable is getting defined even if
task was skipped.
That results in set_fact to fail, as resulting variable has no `results`
key in it.
Structure of such variable looks like that:
```
"devices_check": {
"changed": false,
"false_condition": "osd_auto_discovery | default(False) | bool",
"skip_reason": "Conditional result was False",
"skipped": true
}
```
Checking for task not being skipped solves such issues.
Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
ceph-client | ||
ceph-common | ||
ceph-config | ||
ceph-container-common | ||
ceph-container-engine | ||
ceph-crash | ||
ceph-dashboard | ||
ceph-defaults | ||
ceph-exporter | ||
ceph-facts | ||
ceph-fetch-keys | ||
ceph-grafana | ||
ceph-handler | ||
ceph-infra | ||
ceph-mds | ||
ceph-mgr | ||
ceph-mon | ||
ceph-nfs | ||
ceph-node-exporter | ||
ceph-osd | ||
ceph-prometheus | ||
ceph-rbd-mirror | ||
ceph-rgw | ||
ceph-rgw-loadbalancer | ||
ceph-validate |