redhatgov.workshops icon indicating copy to clipboard operation
redhatgov.workshops copied to clipboard

student_cli playbooks/roles not working...

Open rafaeltuelho opened this issue 6 years ago • 2 comments

I was able to provision (after some hacks not documented in README :-)) the student_cli workshop but I'm not able to run the 2_configure.yml playbook.

I'm getting the following error:

TASK [subscription_manager : Add DNS entries for subscription] *************************************************************************************************
task path: /home/rsoares/workshops/RedHatGov/redhatgov.workshops/student_cli/roles/subscription_manager/tasks/main.yml:7
fatal: [redhatgovbr.0.redhatbr.io]: FAILED! => {
    "msg": "The conditional check 'prep' failed. The error was: error while evaluating conditional (prep): 'prep' is undefined\n\nThe error appears to have been in '/home/rsoares/workshops/RedHatGov/redhatgov.workshops/student_cli/roles/subscription_manager/tasks/main.yml': line 7, 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: Add DNS entries for subscription\n  ^ here\n"
}
	to retry, use: --limit @/home/rsoares/.ansible-retry/2_configure.retry

PLAY RECAP *****************************************************************************************************************************************************
redhatgovbr.0.redhatbr.io  : ok=1    changed=0    unreachable=0    failed=1

It appears some tasks on role subscription_manager references a fact named prep which is not defined anywhere...

see: https://github.com/RedHatGov/redhatgov.workshops/blob/master/student_cli/roles/subscription_manager/tasks/main.yml#L20

Can someone guide me here? Is this workshop (student_cli) still valid or I should work with another one?

rafaeltuelho avatar Jul 18 '18 11:07 rafaeltuelho

The student_cli workshop isn't really a complete thing, and is scheduled for removal. What are you trying to accomplish? I might be able to suggest a better choice.

ajacocks avatar Jul 25 '18 14:07 ajacocks

@ajacocks We was trying to use this workshop playbooks to provision VMs on EC2 to be used by students in one workshop (http://bit.ly/ocp-rhbr-workshop) we developed here in Brazil. Today we use GCE to provision thin VMs just with minimal centos. But we are planning to use EC2 like you do with redhatgov.io.

rafaeltuelho avatar Jul 27 '18 19:07 rafaeltuelho