You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing playbooks and roles, it would be very helpful for the process of debugging to allow for functionality that either stands alongside the typical "no_log: true" or changes it in some way to only remove logging for specific attributes of a task.
For example, I add a host to the current play, but I want to see all other information printed to the logs/stdout except the password, with current no_log functionality, this is not possible -- it's either all or nothing.
I was looking through the Ansible Core code to see if this was something that I could just put a PR up for myself, but the no_log functionality is quite intertwined with a lot of other stuff -- and is out of my purview for myself (I don't know Python lol); so this may be a feature that is too much work for too little reward, but I think it's a very good nice-to have (I just can't implement it myself)
Issue Type
Feature Idea
Component Name
ansible-core core
Additional Information
- name: Add Host to Playadd_host:
name: "{{ target.host.ip }}"groups: target-platformansible_connection: sshansible_user: "{{ target.host.user }}"ansible_password: "{{ passwd }}"no_log_attr: true, ansible_password# Select, 'True' to enable no logging of specific attribute. Referance ansible_password as the argument to specify the attribute to not be logged.
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
When writing playbooks and roles, it would be very helpful for the process of debugging to allow for functionality that either stands alongside the typical "no_log: true" or changes it in some way to only remove logging for specific attributes of a task.
For example, I add a host to the current play, but I want to see all other information printed to the logs/stdout except the password, with current no_log functionality, this is not possible -- it's either all or nothing.
I was looking through the Ansible Core code to see if this was something that I could just put a PR up for myself, but the no_log functionality is quite intertwined with a lot of other stuff -- and is out of my purview for myself (I don't know Python lol); so this may be a feature that is too much work for too little reward, but I think it's a very good nice-to have (I just can't implement it myself)
Issue Type
Feature Idea
Component Name
ansible-core core
Additional Information
Code of Conduct
The text was updated successfully, but these errors were encountered: