Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no_log option set to true makes it very hard to find issues #14

Closed
stevenengland opened this issue Dec 22, 2022 · 1 comment
Closed

Comments

@stevenengland
Copy link
Collaborator

Hi there,

when using this role it is kind of hard to troubleshoot misconfigurations when excessive configuration blocks like this one have set their no_log property to true:

- name: configure paperless-ngx
  ansible.builtin.lineinfile:
    path: "{{ paperlessng_directory }}/paperless.conf.template"
    regexp: ^#?{{ item.regexp }}=
    line: "{{ item.line }}"
  with_items:
   <alotofitemshere>

I know there are good reasons to hide these logs. But I needed to manually turn on logging just to recognize I had a type in a variable.

Non ideal ideas so far:

  • Splitting the configuration via lineinfile in smaller chunks
  • Make a separete task with no_log: true only for really sensitive options
@stevenengland
Copy link
Collaborator Author

Solved by #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant