workshops
workshops copied to clipboard
Bug report for Ansible Workshops
Problem Summary
++ CI Failure ++ Catalog Item: AAP2 Ansible & Smart Management Workshop Failed guid: rh1aad Account: gpte Cloud: aws Region: us-east-2
Fatal error:
TASK [../roles/manage_ec2_instances : save ami for centos 7 node] ************** fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/tmp/aap2-ansible-workshops-rh1aad/ansible_agnostic_deployer/a nsible/workdir/aap2-ansible-workshops/roles/manage_ec2_instances/tasks/ami_find/ami_find_centos_7.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n
- name: save ami for centos 7 node\n ^ here\n"}
Issue Type
Bug
Extra vars file
Fatal error:TASK [../roles/manage_ec2_instances : save ami for centos 7 node] ************** fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/tmp/aap2-ansible-workshops-rh1aad/ansible_agnostic_deployer/a nsible/workdir/aap2-ansible-workshops/roles/manage_ec2_instances/tasks/ami_find/ami_find_centos_7.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n
- name: save ami for centos 7 node\n ^ here\n"}
Ansible Playbook Output
Fatal error:TASK [../roles/manage_ec2_instances : save ami for centos 7 node] ************** fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/tmp/aap2-ansible-workshops-rh1aad/ansible_agnostic_deployer/a nsible/workdir/aap2-ansible-workshops/roles/manage_ec2_instances/tasks/ami_find/ami_find_centos_7.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n
- name: save ami for centos 7 node\n ^ here\n"}
Ansible Version
No idea as the environment was already deleted by the system due to failure.
Ansible Configuration
No idea as the environment was already deleted by the system due to failure.
Ansible Execution Node
CLI Ansible (Ansible Core)
Operating System
++ CI Failure ++ Catalog Item: AAP2 Ansible & Smart Management Workshop Failed guid: rh1aad Account: gpte Cloud: aws Region: us-east-2
Fatal error:TASK [../roles/manage_ec2_instances : save ami for centos 7 node] ************** fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/tmp/aap2-ansible-workshops-rh1aad/ansible_agnostic_deployer/a nsible/workdir/aap2-ansible-workshops/roles/manage_ec2_instances/tasks/ami_find/ami_find_centos_7.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n
- name: save ami for centos 7 node\n ^ here\n"}
I am back from PTO and will take a look with @heatmiser again this week
@IPvSean CentOS 7.8 AMI images were set to deprecate across all AWS regions over the past couple of weeks. I made a copy of the CentOS 7.8 AMI and shared it with your AWS account. We should be able to set the default filter for the manage_ec2_instances
role to point to your AWS account ID for the CentOS 7.8 AMI ami_find
lookup.
reopen if this is still an issue, ticket was from August and its now October so I have not heard any updates on this issue, sorry for slow response time here