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
54 stars 52 forks source link

playbook ibmi_fix_compare.yml problem #181

Closed Ludovic-Menard closed 6 months ago

Ludovic-Menard commented 6 months ago

Hello all,

When I use this playbook, I receive the following message :

task path: /home/lmenard/ansible-for-i/usecases/fix_management/ibmi_fix_group_compare.yml:26 ERROR! this task 'ansible.builtin.include_tasks' has extra params, which is only allowed in the following modules: include_tasks, add_host, raw, script, include_role, import_role, win_command, group_by, shell, import_tasks, meta, include_vars, include, set_fact, win_shell, command

The error appears to be in '/home/lmenard/.ansible/collections/ansible_collections/ibm/power_ibmi/roles/check_ptf_groups_against_fix_repo/tasks/main.yml': line 53, column 7, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Compare the group on target system
  ^ here

This is the verbose log Thanks a lot for your help Ludo

bash-5.2$ ansible-playbook -i hosts usecases/fix_management/ibmi_fix_group_compare.yml -e "{'group_list':['SF99953'], 'target_system': '10.7.19.53', 'repo_server': '10.7.19.51'}" -vvvv ansible-playbook 2.9.10 config file = None configured module search path = ['/home/lmenard/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /QOpenSys/pkgs/lib/python3.6/site-packages/ansible executable location = /QOpenSys/pkgs/bin/ansible-playbook python version = 3.6.15 (default, Dec 17 2021, 09:57:34) [GCC 6.3.0] No config file found; using defaults setting up inventory plugins host_list declined parsing /home/lmenard/ansible-for-i/hosts as it did not pass its verify_file() method auto declined parsing /home/lmenard/ansible-for-i/hosts as it did not pass its verify_file() method Parsed /home/lmenard/ansible-for-i/hosts inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/plugins/callback/default.py

PLAYBOOK: ibmi_fix_group_compare.yml **** Positional arguments: usecases/fix_management/ibmi_fix_group_compare.yml verbosity: 4 connection: smart timeout: 10 become_method: sudo tags: ('all',) inventory: ('/home/lmenard/ansible-for-i/hosts',) extra_vars: ("{'group_list':['SF99953'], 'target_system': '10.7.19.53', 'repo_server': '10.7.19.51'}",) forks: 5 1 plays in usecases/fix_management/ibmi_fix_group_compare.yml

PLAY [10.7.19.53] *** META: ran handlers

TASK [compare the groups] *** task path: /home/lmenard/ansible-for-i/usecases/fix_management/ibmi_fix_group_compare.yml:26 ERROR! this task 'ansible.builtin.include_tasks' has extra params, which is only allowed in the following modules: include_tasks, add_host, raw, script, include_role, import_role, win_command, group_by, shell, import_tasks, meta, include_vars, include, set_fact, win_shell, command

The error appears to be in '/home/lmenard/.ansible/collections/ansible_collections/ibm/power_ibmi/roles/check_ptf_groups_against_fix_repo/tasks/main.yml': line 53, column 7, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Compare the group on target system
  ^ here

PLAY RECAP **

Ludovic-Menard commented 6 months ago

Problem solved