pwgen: fix docker output

This commit is contained in:
ace
2023-02-10 14:00:34 +03:00
parent 780ab36c0c
commit 3033c2f02b
2 changed files with 5 additions and 2 deletions

View File

@ -42,5 +42,5 @@
- name: Write htpasswd hash for {{ item.name }}
lineinfile:
path: "{{ inventory_dir }}/group_vars/all/passwords.yaml"
line: "{{ item.name }}_htpasswd_hash: \"{{ docker_container_output.ansible_facts.docker_container.Output.split('\n')[0].split(':')[1] }}\""
line: "{{ item.name }}_htpasswd_hash: \"{{ docker_container_output.container.Output.split('\n')[0].split(':')[1] }}\""
when: htpasswd_hash_test_grep.stdout == '0'