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/: u
We're seeing some strange behaviour where it seems like Powershell scripts
executed by Ansible are having their variables written to the system as
environment variables as opposed to temporary session variables. The same
scripts run through Jenkins don't write to ENV, so it seems like Ansible is
Hello,
I wan´t to split the hostname of my inventory hostnames. The hostnames have
two or three subdomains. For Exampel "host.sub1.sub2.domain"
I need two splits. One bevor the first dot (in our example: host) and one
after the first dot. (sub1.sub2.domain).
I tried with {{ HOST.split(".")[0] }}