Skip to content

[Bug] Unable to create cluster on Digitalocean using UI due to error in digitalocean.yml #1318

@Sidgut

Description

@Sidgut

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

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions