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

Fix Force DB Drop command #180

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

rooftopcellist
Copy link
Member

Currently, when running the restore role, we see this error:

 TASK [Restore database dump to the new postgresql container] ******************************** 
[0;31mfatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'force_drop_db' is undefined\n\nThe error appears to be in '/opt/ansible/roles/restore/tasks/postgres.yml': line 103, 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: Restore database dump to the new postgresql container\n  ^ here\n"}[0m

This is because no default was set in eda/defaults/vars.yml.

This PR resolves that and a few other things to better align with the awx-operator.

@rooftopcellist
Copy link
Member Author

Tested and verified the whole install, backup and restore flow.

@rooftopcellist rooftopcellist merged commit bc6bf42 into ansible:main Jan 31, 2024
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 this pull request may close these issues.

1 participant