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

2_load.yml playbook execution failing for rhel_aws workshop due to undefined variable #123

Closed
t-prinz opened this issue Oct 5, 2020 · 0 comments · Fixed by #125
Closed
Assignees

Comments

@t-prinz
Copy link

t-prinz commented Oct 5, 2020

When running the 2_load.yml playbook, execution fails twice when encountering the undefined variable beta. The complete files are attached, but to get around the issue, I modified 2 files:

../ansible_tower_aws/roles/ansible.tower/tasks/nodes_setup.yml

BEFORE

  • name: Enable Ansible repo
    rhsm_repository:
    name: "{{ ansible_repo }}"
    when: not beta|bool

AFTER

  • name: Enable Ansible repo
    rhsm_repository:
    name: "{{ ansible_repo }}"

../ansible_tower_aws/roles/subscription_manager/tasks/subscribe.yml

BEFORE

  • name: RHEL 8 tasks
    import_tasks: repos-rhel8.yml
    when: not cloud_access and ansible_distribution == 'RedHat' and ansible_distribution_major_version == '8' and not beta|bool

AFTER

  • name: RHEL 8 tasks
    import_tasks: repos-rhel8.yml
    when: not cloud_access and ansible_distribution == 'RedHat' and ansible_distribution_major_version == '8'

load.error.txt
load-2.error.txt

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

Successfully merging a pull request may close this issue.

2 participants