FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"

Hi all,

I get the error below when I use no_log: True to hide secrets from logs.

FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"

Here is excerpt of the task

 - name: "{{ ansible_os_family }}.yml - setup or replace environment variables"
   win_environment:
     level: "{{ item.varscope }}"
     name: "{{ item.varname }}"
     state: present
     value: "{{ item.varvalue }}"
   with_items: "{{ env_var }}"
   no_log: true

Here are some info regarding my configuration.
ansible version: 2.10.9
operating system of ansible workstation: Ubuntu 20.04.6 LTS
operating system of test machine: Windows 2022

regards,
j

That is the intent of no_log… you would want this in the event that you are calling something through a variable that should not be in clear text.

Remove it from your playbook to have it not censored.

1 Like

Thank you @kerb0t

I removed it and saw that I had forgotten to merge the values for env_var

regards,
j

1 Like