-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
wordpress_sites improvements #528
Conversation
94ba0fa
to
1010012
Compare
Some doc updates should accompany this. |
* Add to_env filter * Use combine + to_env for better .env templates * Remove the need for wp_env and set automatically based on env * Set disable_wp_cron by default
1010012
to
c017338
Compare
I think there may be an issue here with 'roles/deploy/templates/env.j2'. Getting a failure on deploy. failed: [staging.example.com] => (item={u'dest': u'.env', u'src': u'roles/deploy/templates/env.j2', u'name': u'.env config'}) => {"failed": true, "item": {"dest": ".env", "name": ".env config", "src": "roles/deploy/templates/env.j2"}, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'value'"} |
Maybe this instead for env.j2?
|
Yep, ran into the exact same issue after updating an existing installation. |
Thank you @henkler for helping catch that this Your edit works. There is a bit of convention in the
|
@henkler Would you be interested in submitting a pull request for this? |
Sure. Let me run another deploy first and I'll get it submitted. |
PR #530 submitted. |
to_env
filtercombine
+to_env
for better .env templateswp_env
and set automatically based onenv
disable_wp_cron
by default