Skip to content

role fails with "Invalid data passed to 'loop'" #54

@b1r63r

Description

@b1r63r

TASK [stackhpc.libvirt-host : Ensure configuration files exist] **********************************************************************************************************
task path: /home/birger/.ansible/roles/stackhpc.libvirt-host/tasks/config.yml:24
fatal: [examplehost]: FAILED! => {
"msg": "Invalid data passed to 'loop', it requires a list, got this instead: <generator object select_or_reject at 0x7f2bcc663f40>. Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup."
}

I used the role t2d.ansible_role_libvirt_host (which is v. 1.4.1 of this same project?) without this problem. It had other problems, though. So I tried to switch over here. Same playbook now gives this error.

Running ansible on fedora, with target system running Centos 8 stream

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions