You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've read the docs and followed them (if applicable)
Replace any X with your information.
What is the current behavior?
When running vagrant up, with the Wordpress-install role, Setup Permalink Structure does not check properly whether a Wordpress installation has taken place. If any site has installed Wordpress, that every site will attempt to setup the permalink structure.
TASK [wordpress-install : Install WP] ******************************************
changed: [default] => (item=superblog)
skipping: [default] => (item=statictest)
changed: [default] => (item=patterncutting)
changed: [default] => (item=followerof)
...
TASK [wordpress-install : Setup Permalink Structure] ***************************
changed: [default] => (item=superblog)
---------------------------------------------------
Error: This does not seem to be a WordPress install.
Pass --path=`path/to/wordpress` or run `wp core download`.
failed: [default] (item=statictest) => {"changed": true, "cmd": ["wp", "rewrite", "structure", "/%postname%/", "--allow-root"], "delta": "0:00:00.300259", "end": "2016-09-27 10:31:47.035436", "failed": true, "item": "statictest", "rc": 1, "start": "2016-09-27 10:31:46.735177", "stderr": "Error: This does not seem to be a WordPress install.\nPass --path=`path/to/wordpress` or run `wp core download`.", "stdout": "", "stdout_lines": [], "warnings": []}
Note that the above error occurs because the site in question has a non-standard structure, however the play should not be run since site_install : false is set for this site. Hence why the wordpress-install play skips the site.
Looking at the conditional for the TASK [wordpress-install : Setup Permalink Structure], it seems as if it is checking whether the wp_install_results is marked as changed. This, I believe, is a bug (oles/wordpress-install/tasks/main.yml line:64).
when: wp_install_results | changed or wp_multisite_install_results | changed
The variable itself is as follows (from debugging). As per the expected behaviour of Anisible variables in loops, the variable has a top level 'changed' property, which will be true if any iteration of the loop has set 'changed' to true, as well as individual 'changed' properties for each interation. I've only included part of the variable so as not to clutter this report.
Permalinks should only be setup if wordpress has been installed for a site. This would be accomplished be fixing the conditional on the permalink play to check the site specific 'changed' properties.
I believe that this is the intended behaviour of Trellis, since when ansible deploy is subsequently run, no further wordpress installs are run, hence the wp_install_results variable shows "changed": false, and all the permalink play is skipped for all sites.
Bug report
Please provide steps to reproduce, including full log output:
Set site_install: false for one site of a trellis containing more than one site. You will see that the permalink play described above still runs for that site. Logs are already detailed above.
Please describe your local environment:
Ansible version: 2.1.1.0
OS: 10.11.6
Vagrant version: 1.8.5
Where did the bug happen? Development or remote servers?
Development
Please provide a repository or your wordpress_sites config (if possible):
Apologies for any typos, my system's autocorrect went to town on this.
Is there a related Discourse thread or were any utilized (please link them)?
Installing a static site with Trellis - Note that this thread is attempting to perform non-standard actions with Trellis, whereas this bug affects standard behaviour.
The text was updated successfully, but these errors were encountered:
Not the same issue- not a multisite issue. The issue here is that permalink structure will not skip when it's supposed to. Apologies if I'm missing something.
I can't comment on the refactoring of the multisite install (which, very elegant btw, looks like django syntax, which I didn't know came into ansible at all), but the conditional now works as expected. Many thanks!
Submit a feature request or bug report
Replace any
X
with your information.What is the current behavior?
When running vagrant up, with the Wordpress-install role,
Setup Permalink Structure
does not check properly whether a Wordpress installation has taken place. If any site has installed Wordpress, that every site will attempt to setup the permalink structure.Note that the above error occurs because the site in question has a non-standard structure, however the play should not be run since
site_install : false
is set for this site. Hence why the wordpress-install play skips the site.Looking at the conditional for the
TASK [wordpress-install : Setup Permalink Structure]
, it seems as if it is checking whether the wp_install_results is marked as changed. This, I believe, is a bug (oles/wordpress-install/tasks/main.yml line:64).when: wp_install_results | changed or wp_multisite_install_results | changed
The variable itself is as follows (from debugging). As per the expected behaviour of Anisible variables in loops, the variable has a top level 'changed' property, which will be true if any iteration of the loop has set 'changed' to true, as well as individual 'changed' properties for each interation. I've only included part of the variable so as not to clutter this report.
What is the expected or desired behavior?
Permalinks should only be setup if wordpress has been installed for a site. This would be accomplished be fixing the conditional on the permalink play to check the site specific 'changed' properties.
I believe that this is the intended behaviour of Trellis, since when
ansible deploy
is subsequently run, no further wordpress installs are run, hence the wp_install_results variable shows"changed": false
, and all the permalink play is skipped for all sites.Bug report
Please provide steps to reproduce, including full log output:
Set
site_install: false
for one site of a trellis containing more than one site. You will see that the permalink play described above still runs for that site. Logs are already detailed above.Please describe your local environment:
Ansible version: 2.1.1.0
OS: 10.11.6
Vagrant version: 1.8.5
Where did the bug happen? Development or remote servers?
Development
Please provide a repository or your
wordpress_sites
config (if possible):Documentation: https://roots.io/trellis/docs/local-development-setup/
wordpress_sites
options: https://roots.io/trellis/docs/wordpress-sitesDefine accompanying passwords/secrets in group_vars/development/vault.yml
Apologies for any typos, my system's autocorrect went to town on this.
Is there a related Discourse thread or were any utilized (please link them)?
Installing a static site with Trellis - Note that this thread is attempting to perform non-standard actions with Trellis, whereas this bug affects standard behaviour.
The text was updated successfully, but these errors were encountered: