Table of Contents

Ansible problem determination

python interpreter

warning when running a playbook

[WARNING]: Platform aix on host aixna001 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change the meaning of that path. See
https://docs.ansible.com/ansible/2.11/reference_appendices/interpreter_discovery.html for more information.

Solution: Add the interpreter int hosts file

[root@lnx100 ~]# vi /etc/ansible/hosts
[aix]
nim001 ansible_python_interpreter=/usr/bin/python
aix002 ansible_python_interpreter=/usr/bin/python

playbook debug

If you want to keep temporary files after running a playbook use

[root@lnxa100 playbooks]# export ANSIBLE_KEEP_REMOTE_FILES=1 ;ansible-playbook mksysb.yml -vvv