Skip to content

Commit 72e31ef

Browse files
committed
podman login: omit certdir value by default
1 parent b48ead5 commit 72e31ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/molecule_plugins/podman/playbooks/create.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
- name: Log into a container registry
1212
containers.podman.podman_login:
1313
certdir: >-
14-
{% if lookup('env', 'DOCKER_CERT_PATH') %}
15-
{{ item.cert_path | default(lookup('env', 'DOCKER_CERT_PATH') + '/cert.pem') }}
16-
{% endif %}
14+
{% if lookup('env', 'DOCKER_CERT_PATH') %}{{ item.cert_path | default(lookup('env', 'DOCKER_CERT_PATH') + '/cert.pem') }}{% else %}{{ item.cert_path | default(omit) }}{% endif %}
1715
executable: "{{ podman_exec }}"
1816
username: "{{ item.registry.credentials.username }}"
1917
password: "{{ item.registry.credentials.password }}"

0 commit comments

Comments
 (0)