ceph-ansible/roles
Dmitriy Rabotyagov e751b2960a Don't try to set devices fact when osd_auto_discovery was skipped
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 9405558d03)
2024-10-28 22:22:28 +00:00
..
ceph-client address Ansible linter errors 2024-03-07 21:03:32 +01:00
ceph-common Revert "nfs-ganesha support removal" 2024-06-20 14:22:40 +02:00
ceph-config ceph-rgw: introduce rgw zone to the name schema 2024-05-17 00:42:49 +02:00
ceph-container-common Revert "nfs-ganesha support removal" 2024-06-20 14:22:40 +02:00
ceph-container-engine container-engine: enforce docker for Ubuntu os family 2024-03-20 10:40:07 +01:00
ceph-crash container: cleanup container systemd units 2024-03-07 21:03:33 +01:00
ceph-dashboard drop iscsigw support 2024-03-07 21:03:33 +01:00
ceph-defaults ceph-handler: use haproxy maintenance for rgw restarts 2024-06-27 14:41:39 +02:00
ceph-exporter ceph-exporter: add installation role 2024-03-07 21:03:33 +01:00
ceph-facts Don't try to set devices fact when osd_auto_discovery was skipped 2024-10-28 22:22:28 +00:00
ceph-fetch-keys address Ansible linter errors 2024-03-07 21:03:32 +01:00
ceph-grafana address Ansible linter errors 2024-03-07 21:03:32 +01:00
ceph-handler ceph-handler: use haproxy maintenance for rgw restarts 2024-06-27 14:41:39 +02:00
ceph-infra Revert "nfs-ganesha support removal" 2024-06-20 14:22:40 +02:00
ceph-mds ceph-exporter: add installation role 2024-03-07 21:03:33 +01:00
ceph-mgr systemd: export params as a varaible 2024-03-07 21:03:33 +01:00
ceph-mon ceph-mon: move the ceph_config call to ceph-mon role 2024-04-11 19:03:09 +02:00
ceph-nfs Revert "nfs-ganesha support removal" 2024-06-20 14:22:40 +02:00
ceph-node-exporter address Ansible linter errors 2024-03-07 21:03:32 +01:00
ceph-osd ceph-osd: introduce ec profile creation 2024-03-17 00:44:45 +01:00
ceph-prometheus drop iscsigw support 2024-03-07 21:03:33 +01:00
ceph-rbd-mirror address Ansible linter errors 2024-03-07 21:03:32 +01:00
ceph-rgw ceph-rgw: introduce rgw zone to the name schema 2024-05-17 00:42:49 +02:00
ceph-rgw-loadbalancer address Ansible linter errors 2024-03-07 21:03:32 +01:00
ceph-validate Revert "nfs-ganesha support removal" 2024-06-20 14:22:40 +02:00