When using Ansible system roles for podman management, podman secrets appear in log output
Issue
- When using the
podman
role in the Ansible system roles collections provided byrhel-system-roles
, any secrets handled with thehandle_secrets.yml
file may be logged to verbose output. - If running
ansible-playbook
or arhel-system-role.podman
secret task in verbose mode,data
from the role is leaked to the console:
TASK [rhel-system-roles.podman : Set variables part 0] ***********************************************************************************
ok: [localhost] => {"ansible_facts": {"__podman_secret": {"data": "my super secret", "name": "my-super-secret", "skip_existing": true, "state": "present"}}, "changed": false}
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
rhel-system-roles.podman
Ansible RHEL system role
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.