carlalexander / debops-wordpress

Your superpowered WordPress server in three commands.
GNU General Public License v3.0
440 stars 65 forks source link

FAILED! => {"msg": "'pki_env_secret_directories' is undefined"} #216

Closed wknechtel closed 4 years ago

wknechtel commented 5 years ago

Hello! I'm a n00b to debops, so please forgive me if I'm missing something obvious. I'm walking through the "Configuring your server" portion of the wiki, and keep slamming into this error when running debops wordpress:

TASK [debops.secret : Create secret directories on Ansible Controller] **** fatal: [myhostname]: FAILED! => {"msg": "'pki_env_secret_directories' is undefined"}

The debops bootstrap -u root and debops commands seem to run just fine. This is on a fresh install of everything - new server, new debops (tag v0.6.0), the works. At first I thought it was somehow perhaps my WSL instance messing with me, but then I spun up a new VM install of 18.04 LTS, installed debops wordpress there, and hit the same error.

Any insight would be most appreciated.

yazzou commented 5 years ago

Hi got the same error on a fresh install Debian 10 running as a VM

carlalexander commented 5 years ago

I'm a bit swamped this week with the conference I'm organizing. I hope to take a look at this next week. Sorry for the delay :)

krodik commented 4 years ago

Hi, has anyone figured out the fix to this issue? Thank you.

carlalexander commented 4 years ago

Sorry, I haven't followed up on this. Are you building a website with wordpress__ssl set to false?

krodik commented 4 years ago

no, wordpress__ssl is set to True.

carlalexander commented 4 years ago

Can you confirm that the step "Prepare debops.pki environment" is running? That's the step that sets that variable.

krodik commented 4 years ago

This is the output. Just now, trying a fresh install. TASK [debops.pki/env : Prepare debops.pki environment] ****************************************** ok: [www.domain.do]

Side note: I have a bunch of [WARNING]: Could not match supplied host pattern, ignoring: ... I didn't notice it before.

thecreed commented 4 years ago

this issue was also reproduced in my env: ansible is running from fedora 29 with venv, VM is running Ubuntu 18.04.3 LTS

-- solved after changing: roles/wordpress/defaults/main.yml +wordpress__ssl: True

carlalexander commented 4 years ago

Released v0.6.1 with a fix. I've also gone ahead and made wordpress_ssl on by default as well because at this point it should be.

Sorry for the delay 😓