-
-
Notifications
You must be signed in to change notification settings - Fork 537
Description
Bug description
The task "DigitalOcean: Get fingerprint for SSH key" fails because the lower filter is being applied to ssh_keys.data, which converts the list to a string.
Location:
roles/cloud_resources/tasks/digitalocean.yml:105
Current Code:
yaml- name: DigitalOcean: Get fingerprint for SSH key 'ssh_key_tmp_clyxfav'
ansible.builtin.set_fact:
ssh_key_fingerprint: "{{ [item.fingerprint] }}"
loop: "{{ ssh_keys.data | lower }}"
**Error:**
[ERROR]: The loop value must resolve to a 'list', not 'str'.
fatal: [localhost]: FAILED! => {"msg": "The loop value must resolve to a 'list', not 'str'."}
Environment:
Ansible Collection: vitabaks.autobase
Task file: roles/cloud_resources/tasks/digitalocean.yml
Expected behavior
The error should not come & the cluster should have been created
Steps to reproduce
No response
Installation method
Console (UI)
System info
Using Ubuntu 24.04 (LTS) x64 on a Droplet with 1GB Memory on Digitalocean
Additional info
