I’m trying to use a private docker registry, and seeing some weirdness that I can’t explain. Running the exact same task yaml is working as expected when I put it in a playbook and run it, but not working when running as part of a role (the task runs, but comes back with status “changed”: false
Here’s my playbook, which works:
`
- name: docker login test
hosts: myhost-02
tasks: - name: log in to my docker registry
docker_login:
registry: hoylu.azurecr.io
username: hoylu
password: MyPassword
`
and here’s what I have under roles/dockerhost/tasks:
`