[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/: u

[ansible-devel] Ansible is setting Windows environment variables

2019-10-25 Thread Alek Ohanian
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

[ansible-devel] split FQDN

2019-10-25 Thread Matti Herrmann
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] }}