tmichett / DO467_Demo

DO467 Demo Playbooks and Items for Course
3 stars 11 forks source link

Chapter 6 and Chapter 7 - Demo Setup Failures #5

Open tmichett opened 5 months ago

tmichett commented 5 months ago

Investigate and fix Chapter 6/7 Demo failures

The setup demo playbook fails. Need to double-check what happened

tmichett commented 5 months ago

Chatper 6 Errors

[student@workstation CH6]$ ansible-navigator run Create_Job_Workflow_Template.yml

TASK [Create Run Job Template QA Environment Step] **** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: 'NoneType' object is not subscriptable fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/runner/.ansible/tmp/ansible-tmp-1714661336.3409822-76-149745154263976/AnsiballZ_workflow_job_template_node.py\", line 107, in \n _ansiballz_main()\n File \"/home/runner/.ansible/tmp/ansible-tmp-1714661336.3409822-76-149745154263976/AnsiballZ_workflow_job_template_node.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/runner/.ansible/tmp/ansible-tmp-1714661336.3409822-76-149745154263976/AnsiballZ_workflow_job_template_node.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.ansible.controller.plugins.modules.workflow_job_template_node', init_globals=dict(_module_fqn='ansible_collections.ansible.controller.plugins.modules.workflow_job_template_node', _modlib_path=modlib_path),\n File \"/usr/lib64/python3.9/runpy.py\", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_ansible.controller.workflow_job_template_node_payload_vbnsocon/ansible_ansible.controller.workflow_job_template_node_payload.zip/ansible_collections/ansible/controller/plugins/modules/workflow_job_template_node.py\", line 403, in \n File \"/tmp/ansible_ansible.controller.workflow_job_template_node_payload_vbnsocon/ansible_ansible.controller.workflow_job_template_node_payload.zip/ansible_collections/ansible/controller/plugins/modules/workflow_job_template_node.py\", line 313, in main\nTypeError: 'NoneType' object is not subscriptable\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

[student@workstation CH6]$ ansible-navigator run Create_Job_Workflow_Template_Approval.yml

^^^^ This one works

tmichett commented 5 months ago

Think accidentally messed up the one CH6 playbook, need to look for the fix

tmichett commented 5 months ago

For chapter 7, update the notes and ensure using Ansible-Navigator command and not playbook