cancel
Showing results for 
Search instead for 
Did you mean: 
87951469
Flight Engineer
Flight Engineer
  • 371 Views

chapter 3 managing variables and facts - secrets_dest is undefined

Jump to solution

Hello team 

I m getting this error message: 

87951469_0-1760111418123.png

My vars are defined: 

87951469_1-1760111455008.png

 

This is the task: 

 

87951469_0-1760111578760.png

 

 

1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 366 Views

@87951469 There is a typo in the yaml - can you identify it while matching the error message - that will be a great learning to troubleshoot . 

View solution in original post

8 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 367 Views

@87951469 There is a typo in the yaml - can you identify it while matching the error message - that will be a great learning to troubleshoot . 

87951469
Flight Engineer
Flight Engineer
  • 360 Views

Same lab, new error message: 

87951469_0-1760112293583.png

 

The secrets.yml exists

87951469_1-1760112324429.png87951469_2-1760112368261.png

I cant see any typos. I checked for trailing spaces. the vault file does contain web_pass: redhat

0 Kudos
Travis
Moderator
Moderator
  • 351 Views

You likely have a typo again, but you can't see everything. I would suggest attempting to login to the site manually and testing with the username and password. This is all about troubleshooting at this point. You are getting a 403 forbidden for HTTP access to a web location, so it is possible the content doesn't have the right permissions, but most likely, since it is a "protected" site requiring a user and password, I would check there.

Keep in mind, the playbook you are showing has a single task to look at the content and then a debug task to display the captured web content. You are failing on the accessing of the site, so it isn't registering the variable and making to the second task.

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
87951469
Flight Engineer
Flight Engineer
  • 224 Views

There are no messages on the website, and I can login without issues. 

The playbook is still failing however 

Chetan_Tiwary_
Community Manager
Community Manager
  • 194 Views

@87951469 from where are you able to access the website ? Please share the screenshot of the browser ?

 

Chetan_Tiwary__0-1760386992869.png

 

Chetan_Tiwary__1-1760387188331.png

 

Chetan_Tiwary__2-1760387202305.png

 

Travis
Moderator
Moderator
  • 131 Views

@87951469 -

I would suggest checking the contents of your "secrets.yml" file as it appears you might not be signing in properly based on error messages and as @Chetan_Tiwary_ showed above, when you do successfully login to the site, you should see content.

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
87951469
Flight Engineer
Flight Engineer
  • 36 Views

I got it working, not sure what the issue was as I had to recreate the lab for other reasons. thank you for the help. 

Chetan_Tiwary_
Community Manager
Community Manager
  • 20 Views

wonderful @87951469 !

0 Kudos
Join the discussion
You must log in to join this conversation.