since a variable encrypted with vault is no longer a string but a
encrypted object we can't use the filter | length, we have to convert it
to a string before.
Fixes: #6991
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit
6ad7e5286920fceff6f4483672cbdca44f06a25f)
when:
- ceph_docker_registry_auth | bool
- (ceph_docker_registry_username is not defined or ceph_docker_registry_password is not defined) or
- (ceph_docker_registry_username | length == 0 or ceph_docker_registry_password | length == 0)
+ (ceph_docker_registry_username | string | length == 0 or ceph_docker_registry_password | string | length == 0)
- name: validate container service and container package
fail: