-
Notifications
You must be signed in to change notification settings - Fork 389
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
'db_name' is undefined\ #186
Comments
What is the structure of your Next thing to do would be to run ansible in debug mode and show the output of that here and I'd be happy to help if I can! |
Thanks for your response and sorry for the long delay. I fell ill for a while but I better now. I changed the group_vars to be group_vars/pavillion/vars.yaml I still see the same error. Other than project_name and app_name I have not changed anything in vars.yml TASK [db : Ensure the PostgreSQL service is running] *************************** TASK [db : Ensure database is created] ***************************************** PLAY RECAP ********************************************************************* Ansible failed to complete successfully. Any error output should be Line 35 in main.yml is related to the check that fails above.
Now figuring out how to run ansible_local in debug mode. |
I added the line debugger: on_failed under line 35 above in main.yml and I get this... TASK [db : Add the PostgreSQL repository key to the apt trusted keys] ********** TASK [db : Add the PostgreSQL repository to the apt sources list] ************** TASK [db : Ensure locale is available] ***************************************** TASK [db : Install PostgreSQL] ************************************************* TASK [db : Ensure the PostgreSQL service is running] *************************** TASK [db : Ensure database is created] ***************************************** |
What does your vars.yml file look like? |
@vrr-data are you using the latest version of this playbook? We changed the way variables are handled such that we now use the group_vars directory for variables. If you are using this version I'd be happy to try to help you debug! |
and dbservers. Fixes jcalazan#186
@prince-tanapong thank you for the detailed report! I just added #188 - would you mind trying that to see if it doesn't solve your issue? I'm surprised that the test suite passed when we first merged this in if the |
Hi,
Was trying this out pretty much unchanged on Windows 10 Pro Host with Ubuntu 20.04 Guest. Only change I made was renaming the VM and using ansible_local in the vagrant file. I am using VirtualBox provider not docker.
I get the following error during PostgeSQL database creation. The group_vars/vagrant/vars.yaml has the application name set. The db/tasks/main doesn't seem to reference the group_vars. Not sure if I am doing something wrong or if this is a bug. Please check and let me know.
The text was updated successfully, but these errors were encountered: