What to do when a package is needed to perform an operation preparation? #1035
Unanswered
sfermigier
asked this question in
Q&A
Replies: 1 comment
-
I found a workaround, which basically amounts to: def deploy():
"""Deploy the app."""
users = host.get_fact(Users)
if "postgres" in users:
prep_server_stage1()
prep_server_stage2()
prepare_app()
install_app()
restart_app()
else:
prep_server_stage1() where But there are a couple of drawbacks:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a deploy script that fails on a pristine server, because I have some Postgres-related operations that can't be prepared until the
postgres
package is installed:Run with:
Result:
I believe this to be a common use case. Is there a workaround?
Beta Was this translation helpful? Give feedback.
All reactions