When using a quote in the registry password then we have the following
error:
The error was: ValueError: No closing quotation
To fix this we need to use the quote filter.
Close: https://bugzilla.redhat.com/show_bug.cgi?id=
1880252
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit
6dcfdf17d43635fcd0dc658c199702945a1228dd)
---
- name: container registry authentication
- command: '{{ container_binary }} login -u {{ ceph_docker_registry_username }} -p {{ ceph_docker_registry_password }} {{ ceph_docker_registry }}'
+ command: '{{ container_binary }} login -u {{ ceph_docker_registry_username }} -p {{ ceph_docker_registry_password | quote }} {{ ceph_docker_registry }}'
changed_when: false
no_log: true
environment: