Question & Answer
Question
Answer
1) Update or Install the QMGTOOLS utility to the latest build level and then execute the QMGTOOLS/GETANSIBLE command.
| i. |
On the IBM i command line, type the following command:
If the library is found, follow steps B and C below. If the library is not found, we will want to do steps A - C to install QMGTOOLS and update it: A) On the IBM i command line type the following to restore the QMGTOOLS library (NOTE: QALWOBJRST system value needs to be set to *ALL):
B) Then run the following commands:
C) Take an opt. 13 to check for an update and follow the prompts to automatically download and restore the updated library. |
| ii. |
Once QMGTOOLS is updated, execute the following command :
*The above command will run for around 5-10 minutes. |
| iii. |
Upload the /tmp/ansible/snaps/ANSIBLESYSSNAP_YYYYMMDDHHMMSS.zip file using the following command.
Note: The following command has parameter, CASENBR, which assumes you are using a case number. If using a PMR or RCMS case, prompt on the command to get additional parameters. After prompting, there should be parameters for PMR and RCMS number. The CASENBR parameter should be blank.
IBM Blue Diamond clients:
If the local IBM i does not have FTP access, the FTP2IBMCMD will fail to upload, and the '/tmp/ansible/snaps/ANSIBLESYSSNAP_YYYYMMDDHHMMSS.zip file' file will need to be downloaded to your PC and then uploaded manually using the URL, https://www.secure.ecurep.ibm.com/app/upload_sf. |
SyslogFacility DAEMON
LogLevel DEBUG
Subsystem sftp /QOpenSys/QIBM/ProdData/SC1/OpenSSH/libexec/sftp-server -l DEBUG
Ensure the settings in '/QOpenSys/etc/syslog.conf' match the first two directives in sshd_config:
daemon.debug
- Gather and upload your /etc/ansible/hosts or the inventory file you are specifying on the ansible "-i" command option.
- For Ansible Tower under Resources -> Inventories, click on the Inventory specified in your Template and provide screen shots of your Inventory Details, Permissions, Groups, and Hosts.
- https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html
- Provide your Ansible config file.
/etc/ansible/ansible.cfg, ~/.ansible.cfg, or $HOME/ansible.cfg, or ANSIBLE_CFG environment value (if set)- ansible.cfg may be loaded from your GitHub repository if this is where you are loading your playbooks from
- https://docs.ansible.com/ansible/latest/reference_appendices/config.html#ansible-configuration-settings-locations
- For IBM i modules, add the "joblog=true" module input parameter and upload the resulting job log output data.
- i.e.
ansible ibmi -m ibmi_cl_command -a "cmd='crtlib lib(TESTA)' joblog=true"
- i.e.
- Add "-vvv" to the ansible/ssh command for very verbose debug logging.
- i.e.
ansible ibmi -m ibmi_cl_command -a "cmd='crtlib lib(TESTA)' joblog=true" -vvv
ssh user@system -vvv
- i.e.
- Provide the full scroll output from your SSH session including the ansible command and all output data.
- If executing a playbook (ansible-playbook command), provide the failing *.yml Ansible Playbook file being executed.
- Under Resources -> Templates -> Select your template -> Set "Verbosity" to "3(Debug)" -> Save.
- Then, launch your Template.
- Provide the full output log for your launched Job that is displayed. Your jobs can be accessed under Views -> Jobs -> Click on your specific job that is failing.
- The output log from your Tower Job can be download by clicking the icon highlighted in the image below when viewing your Job details.

- The output log from your Tower Job can be download by clicking the icon highlighted in the image below when viewing your Job details.
- Provide the failing *.yml Ansible Playbook file being executed with your Template.
MustGather: Instructions for Sending Data to IBM i Support
https://www.ibm.com/support/pages/node/644037
Related Information
Was this topic helpful?
Document Information
Modified date:
19 May 2025
UID
ibm16250061