carlalexander / debops-wordpress

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

debops.elasticsearch renamed to roles/elasticsearch in upstream #220

Open rsimplicio opened 4 years ago

rsimplicio commented 4 years ago

Was attempting to run debops wordpress today, and kept getting the following error:

~/debops-wordpress  ➦ bc539fe ●  debops wordpress
Running Ansible playbooks:
/Users/robert/debops-wordpress/playbooks/wordpress.yml
ERROR! the role 'debops.elasticsearch/env' was not found in /Users/robert/debops-wordpress/playbooks/roles:/Users/robert/debops-wordpress/roles:/Users/robert/debops-wordpress/ansible/roles:/Users/robert/debops-wordpress/debops/ansible/roles:/Users/robert/Library/Application Support/debops/debops/ansible/roles:/usr/local/lib/python3.7/site-packages/debops/ansible/roles:/Users/robert/Library/Application Support/debops/debops/ansible/roles:/Users/robert/Library/Application Support/debops/debops/ansible/playbooks/roles:/etc/ansible/roles:/Users/robert/debops-wordpress/playbooks

The error appears to be in '/Users/robert/debops-wordpress/playbooks/wordpress.yml': line 15, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    - role: debops.elasticsearch/env
      ^ here

I took at look at debops and it looks like this was changed in the upstream in this commit:

https://github.com/debops/debops/commit/9fcdbbd8c0f1eda535389b7dfc3c1f6b24aad9ba#diff-b7d7da83c689b02eed81accfeceb88fb

I will try to do a PR for you on this.

rsimplicio commented 4 years ago

Tried a simple change to role: elasticsearch/env and that's not working either, looks like other changes were made in v2.0.3 of debops to move from /env roles to pre_tasks: - import_role: syntax: https://github.com/debops/debops/commit/2f04a7128b38b45ced7bd77f791ded752119b49e

carlalexander commented 4 years ago

Yeah, all the roles were renamed in version 2. I haven't had the time to go and update/fix everything. You can switch the debops installation to an earlier tag for now.