Re: [ansible-devel] using json as a password for docker_login module

2019-10-26 Thread 'Felix Fontein' via Ansible Development
Hi, > Luckily I found a code that caused this > behaviour: > https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/docker/docker_login.py#L318. > The "password" is of type "string". Then I changed "type='str'" to > "type='json'" in my local file and everything worked! that's

[ansible-devel] using json as a password for docker_login module

2019-10-25 Thread Сергей Демурин
I am trying to log into private docker container registry and I need to use a json-string as a password. So I do the following docker_login: registry: cr.yandex username: json_key password: "{{ lookup('file', 'key.json') }}" reauthorize: yes And I got an error "Get https://cr.yandex/v2/: