When using Ansible system roles for podman management, podman secrets appear in log output

Solution Verified - Updated -

Issue

  • When using the podman role in the Ansible system roles collections provided by rhel-system-roles, any secrets handled with the handle_secrets.yml file may be logged to verbose output.
  • If running ansible-playbook or a rhel-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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content