Comments (5)
We could discuss it. In general, I would prefer lists because of:
- list items could be easily modified/filtered
- it's a bit more "controlled" way that adding a plain raw text block
- white space handling and indentation could be tricky with multiline strings, especially if you want to control the formatting in the template itself
That's why we have avoided it in all roles so far. As I said, I'm happy to discuss it again, and we should maybe write down some guidelines for our roles.
from apache.
How does your host_vars/group_vars looks like? extra_parameter
is a list parameter so you would have to use:
apache_vhosts:
- servername: "cloud.owncloud.demo"
documentroot: "/var/www/owncloud"
extra_parameters:
- "Redirect / https://owncloud.net"
That's the expected behavior.
from apache.
Hi, here is what it looks like
---
apache_listen_port: 80
apache_listen_port_ssl: 443
apache_vhost_name: "10_owncloud_ssl.conf"
apache_vhosts:
- servername: "owncloud_ssl.net"
documentroot: "/var/www/owncloud"
extra_parameters: |
Redirect / https://owncloud-int.net
Customlog /var/log/httpd/owncloud-int_ssl.access.log combined
from apache.
Yeah, and that's not the expected way to use it, please use a list instead:
apache_vhosts:
- servername: "owncloud_ssl.net"
documentroot: "/var/www/owncloud"
extra_parameters:
- "Redirect / https://owncloud-int.net"
- "Customlog /var/log/httpd/owncloud-int_ssl.access.log combined"
from apache.
Yes works fine, thanks for the hint.
Personally i like it more without param because i can copy paste im my contet into it without forgetting to add dashes and quotes.
from apache.
Related Issues (2)
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 apache.