Refs #8025: Refactor-awx - Bacula task - no log true to hide stdout in more tasks
This commit is contained in:
parent
b19c768e3b
commit
aa27df5ff0
|
@ -7,9 +7,11 @@
|
||||||
src: /etc/bacula/common_default_passwords
|
src: /etc/bacula/common_default_passwords
|
||||||
register: file_content
|
register: file_content
|
||||||
- name: Going to text plane
|
- name: Going to text plane
|
||||||
|
no_log: true
|
||||||
set_fact:
|
set_fact:
|
||||||
file_content_decoded: "{{ file_content.content | b64decode }}"
|
file_content_decoded: "{{ file_content.content | b64decode }}"
|
||||||
- name: Extracting passwords
|
- name: Extracting passwords
|
||||||
|
no_log: true
|
||||||
set_fact:
|
set_fact:
|
||||||
passwords: "{{ file_content_decoded.splitlines() | select('match', '^[^#]') | map('regex_replace', '^([^=]+)=(.+)$', '\\1:\\2') | list }}"
|
passwords: "{{ file_content_decoded.splitlines() | select('match', '^[^#]') | map('regex_replace', '^([^=]+)=(.+)$', '\\1:\\2') | list }}"
|
||||||
- name: Initialize password dictionary
|
- name: Initialize password dictionary
|
||||||
|
|
Loading…
Reference in New Issue