8025-refactor-awx_Task_Bacula_hide_stdout_with_no_log_true_in_Convert #37

Merged
xavi merged 2 commits from 8025-refactor-awx_Task_Bacula_hide_stdout_with_no_log_true_in_Convert into main 2024-10-22 11:24:58 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit aa27df5ff0 - Show all commits

View File

@ -7,9 +7,11 @@
src: /etc/bacula/common_default_passwords
register: file_content
- name: Going to text plane
no_log: true
set_fact:
file_content_decoded: "{{ file_content.content | b64decode }}"
- name: Extracting passwords
no_log: true
set_fact:
passwords: "{{ file_content_decoded.splitlines() | select('match', '^[^#]') | map('regex_replace', '^([^=]+)=(.+)$', '\\1:\\2') | list }}"
- name: Initialize password dictionary