Tasks that create or modify users and set a password can emit plaintext credentials in playbook output and logs, risking credential leakage. For ansible.builtin.user tasks that include the password property, the task-level no_log attribute must be set to true. Tasks missing no_log or with no_log: false are flagged by this rule. Apply no_log: true to any task that handles plaintext secrets or templated variables that resolve to secrets.
- name:Create application user without exposing passwordansible.builtin.user:name:appuserpassword:"{{ appuser_password }}"no_log:true