How Do I See the Details of the Hidden Error When Performing the Installation or Upgrading for Ansible Automation Platform?

Solution Verified - Updated -

Environment

  • Red Hat Ansible Tower
  • Red Hat Ansible Automation Platform

Issue

  • How do I see the details of the hidden error when performing the installation or upgrading for Ansible Automation Platform?

Resolution

  • Modify the task from no_log: True to no_log: False in order not to hide the actual error.

Root Cause

  • The sensitive information (like password) should not be shown in the log file. The installer playbook sometimes executes some commands directly rather than using an Ansible module, then the command line may include the password information for these tasks.

    • Push the execution environment container image to the private Automation Hub using the skopeo utility
    • Run some commands using the PostgreSQL utility like pg_dump, pg_restore, pg_upgrade and so on etc.

Diagnostic Steps

  • When performing the setup.sh, you may see these logs with censored if you have misconfigured the inventory parameters or something.

    fatal: [XXX.XXX.XXX.XXX]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true}
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments