Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing variable - workshop_type #49

Closed
craig-br opened this issue Sep 14, 2021 · 1 comment
Closed

Missing variable - workshop_type #49

craig-br opened this issue Sep 14, 2021 · 1 comment

Comments

@craig-br
Copy link
Contributor

Summary

Error message when building the automation-controller image. Missing workshop_name variable.

Error

packer build --force automation-controller.pkr.hcl
    googlecompute.automation-controller: TASK [ansible.workshops.control_node : Pull supported and workshop images] *****
    googlecompute.automation-controller: task path: /home/craig/.ansible/collections/ansible_collections/ansible/workshops/roles/control_node/tasks/30_controller.yml:95
    googlecompute.automation-controller: fatal: [default]: FAILED! => {
    googlecompute.automation-controller:     "msg": "'workshop_type' is undefined"

Cause

https://github.com/ansible/workshops/blob/edd2f139ca74ccb4d1ab6e9fba00c8ea09fe9f3b/roles/control_node/tasks/30_controller.yml#L95-L103

- name: Pull supported and workshop images
  become_user: "awx"
  containers.podman.podman_image:
    name: "{{ item }}"
  loop:
    - "registry.redhat.io/ansible-automation-platform-20-early-access/ee-supported-rhel8:2.0.0"
    - "registry.redhat.io/ansible-automation-platform-20-early-access/ee-29-rhel8:2.0.0"
    - "registry.redhat.io/ansible-automation-platform-20-early-access/ee-minimal-rhel8:2.0.0"
    - "{{ lookup('vars', workshop_type + '_ee') }}"
@craig-br
Copy link
Contributor Author

Issue fixed on workshop repo. Workshop collection still needs to be rebuilt.

Workshop repo PR

ansible/workshops#1282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant