How to define a dedicated log file for containerized installations?

Solution Verified - Updated

Environment

  • Ansible Automation Platform 2.5 Containerized
  • Ansible Automation Platform 2.6 Containerized

Issue

  • I want to log the installation process in a dedicated log file to better aid troubleshooting sessions

Resolution

  • When running the installer specify the environment variable ANSIBLE_LOG_PATH with a full path to the dedicated file. Example:

    $  ANSIBLE_LOG_PATH="/my/full/path/aap_install_$(date +%F-%T).log" ansible-playbook -i <inventory file> ansible.containerized_installer.install <other options as needed>
    
  • An RFE has been requested to improve this behavior: This content is not included.AAPRFE-2740

Root Cause

  • By default the containerized installer will append new installation logs to the aap_install.log file.
SBR
Category

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.