Comments (6)
I'm going to try to diagnose this further before it gets looked at.
from ansible-role-apache.
@fubarhouse - Thanks for opening the issue—looks like you got it resolved? There's a new configuration variable in example.config.yml
, drupalvm_webserver
, that needs to be configured. Probably should've put out a little more warning, but it's at least noted in the Drupal VM 2.1.0 release notes.
from ansible-role-apache.
@geerlingguy I haven't resolved this yet... I will definitely let you know when though - it's very important to me that I get around this one way or another. Also yeah the variables were set as expected, I'll be migrating a lot of websites for launch within the next 36 hours so once I get a bit of down-time I'll be working on this :)
from ansible-role-apache.
@fubarhouse - Ah, I just noticed:
{% if drupalvm_webserver == 'apache’ %}
It looks like a unicode character snuck in there somewhere. That's not from my code, is it??
The task and the templated fatal error don't match up - that drupalvm_webserver
configuration / setting doesn't occur anywhere inside the geerlingguy.apache
role.
from ansible-role-apache.
@geerlingguy Interesting, thanks for the notes!
For the record, the configuration file at the root contains drupalvm_webserver: apache
and so that's where the variable is coming from. I noticed the unicoding problem, but I haven't looked into why exactly.
Whatever the case, if the solution is applicable to others it would be worthwhile knowing about it.
from ansible-role-apache.
@geerlingguy I've managed to get around the problem by replacing
- { role: geerlingguy.apache, when: drupalvm_webserver == 'apache' }
- { role: geerlingguy.nginx, when: drupalvm_webserver == 'nginx' }
with
- { role: geerlingguy.apache, when: drupalvm_webserver == "apache" }
- { role: geerlingguy.nginx, when: drupalvm_webserver == "nginx" }
I'm not sure why in this particular case as the values are plain text without variable references, but it doesn't seem to like string literals.
I don't mind if you use this knowledge or not - all that matters to me is my want to keep things updated as I need or as cool things come out and this exercise has been fun - I don't actually know how many people consistently reprovision their drupalvm systems - the ones using the system I've made are a bit more specialized.
Honestly when coding var == "" should always beat var == '' always unless you use var == "''" to prevent string literals. For example you can't print variables in bash with echo '$var' as it prints $var - and echo "$var" prints the value of $var
This is ultimately your call, but you should know this in case more show up with this problem.
from ansible-role-apache.
Related Issues (20)
- possibility to enabled OR not apache on boot HOT 5
- [FEATURE] Deploy VHOST
- check-mode not work HOT 2
- CentOS 8 checking httpd certs permissions error HOT 2
- Multiple VHost with this Role? HOT 3
- Issue with Ansible 3.6.9 HOT 1
- How do I know its working? HOT 2
- After latest version, getting "do_indent() got an unexpected keyword argument 'indentfirst'" HOT 2
- Add support to template apache configuration file options HOT 2
- no_log needs to be added to task "Check whether certificates defined in vhosts exist." HOT 3
- SSL vhost is throwing error when starting Apache HOT 2
- /bin/systemctl Failed to connect to bus: No such file or directory HOT 9
- Support not specifying SSLCipherSuite HOT 3
- should the role create the documentroot path on the filesystem? HOT 2
- mods-enable: Why dont link *.conf? HOT 5
- Add additional ListenPort HOT 2
- Apache is ignoring DirectoryIndex set via apache_global_vhost_settings in vhosts.conf HOT 4
- apache_listen_port_ssl does not affect ports.conf HOT 2
- Debian Bookworm Apache restart failed HOT 2
- Firewall setup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-apache.