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

Using gitea_users logs passwords #170

Closed
abrain opened this issue Aug 20, 2024 · 1 comment · Fixed by #171
Closed

Using gitea_users logs passwords #170

abrain opened this issue Aug 20, 2024 · 1 comment · Fixed by #171

Comments

@abrain
Copy link
Contributor

abrain commented Aug 20, 2024

When iterating over gitea_users to create or remove local users, the full items including the password are logged for both tasks.

While using loop_control to only show the user name would look nicer, Ansible recommends to set no_log: true: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_loops.html#limiting-loop-output-with-label

@DO1JLR
Copy link
Member

DO1JLR commented Aug 20, 2024

I like the idea with loop_control.

I guess it could look something like that:

  loop_control:
    label: "user={{ user.name }}"
    loop_var: user

But I don't have the time to test it and create Pull-Request today. @abrain Please feel free to open a PR if you like 😘

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

Successfully merging a pull request may close this issue.

2 participants