0

I am trying to run a task with the no_log: true attribute to keep password out of logs, but I am receiving "the output has been hidden due to the fact that 'no_log: true' was specified for this result' Failure.

Here is the task:

- name: set varible for secured vault password
      set_fact:
        secure_vault_password: "{{ secure_vault_password_string.stdout_lines[0] }}"
        vault_password: ''
      when: secure_vault_password == ''
      no_log: true

I have tried commenting out the no_log line and also changing true to false but still my playbook is failing. Any idea please?

  • You are failing to show us what is the error when `no_log: false` ? – β.εηοιτ.βε Mar 22 '22 at 17:31
  • Problem Resolved. When I remove no_log I can actually see the error which was **task includes an option with an undefined variable**. The variable _"secure_vault_password_string"_ was registred the task before, so I just removed `.stdout_lines[0]` and it works as excpected. – Asma En-nomany Mar 23 '22 at 09:16

0 Answers0