cloudera-labs / cloudera.cluster

An Ansible collection for lifecycle and management of Cloudera CDP Private Cloud resources on bare metal, IaaS, and PaaS.
Apache License 2.0
32 stars 48 forks source link

roles/deployment/cluster/tasks/update_role_config_group.yml fails if you use AWS_S3 #192

Open hadoopch opened 8 months ago

hadoopch commented 8 months ago

Hi all,

AWS_S3 is different from the other services because it has no instances.

For this reason update_role_config_group.yml fails with the following error:

TASK [cloudera.cluster.cluster : Update service role configs] ************************************************************************************************************************************************************************************************
fatal: [cm001.cdp.lan]: FAILED! => {"msg": "Invalid data passed to 'loop', it requires a list, got this instead: . 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."}

PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************

because the loop variable "{{ role_mappings[service] }}" is empty.

I assume that the same issue also exists with ADLS Connector. It also has no instance.

Regards

Uli