IBM / ansible-for-i

the tool is to provide several customized modules for Ansible to manage IBM i systems.
GNU General Public License v3.0
55 stars 51 forks source link

fatal: [server]: FAILED! => {"msg": "Unable to import ibmi_cl_command due to invalid syntax"} #137

Closed bricevollmer closed 1 year ago

bricevollmer commented 2 years ago

Updated to collection v1.8 from v1.5. - Now receiving invalid syntax errors when using collection modules

$ ansible-playbook playbook.yml PLAY [all] **** TASK [text] ***** fatal: [server]: FAILED! => {"msg": "Unable to import ibmi_cl_command due to invalid syntax"} ...ignoring

Rolling back to collection v1.5 allowed the playbook to run correctly again. Updated to 1.6 and this syntax error occurs. What changed with 1.6+ that I cannot import the modules?

LiJunBJZhu commented 2 years ago

What are the python versions on your control node and managed nodes?

bricevollmer commented 2 years ago

Ansible Engine is at v 2.9.27 using Python 2.7.5 IBMi nodes are using python 3.6.15

LiJunBJZhu commented 2 years ago

https://ibm.github.io/ansible-for-i/installation.html

In order to use this Ansible collection, you must have the Python v3.6+ installed on your Ansible server.