ceph-ansible/roles/ceph-facts/tasks
Dmitriy Rabotyagov 9405558d03 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>
2024-10-28 23:21:45 +01:00
..
container_binary.yml address Ansible linter errors 2024-02-16 00:38:19 +01:00
devices.yml Don't try to set devices fact when osd_auto_discovery was skipped 2024-10-28 23:21:45 +01:00
facts.yml ceph-facts: make set_radosgw_address optional 2024-02-28 09:25:00 +01:00
get_def_crush_rule_name.yml address Ansible linter errors 2024-02-16 00:38:19 +01:00
grafana.yml address Ansible linter errors 2024-02-16 00:38:19 +01:00
main.yml remove legacy task 2024-03-20 20:22:34 +01:00
set_monitor_address.yml simplify monitor address setting 2024-03-08 13:02:44 +01:00
set_radosgw_address.yml address Ansible linter errors 2024-02-16 00:38:19 +01:00