Code Monkey home page Code Monkey logo

Comments (5)

xoxys avatar xoxys commented on August 20, 2024 1

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.

xoxys avatar xoxys commented on August 20, 2024

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.

mihauck avatar mihauck commented on August 20, 2024

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.

xoxys avatar xoxys commented on August 20, 2024

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.

mihauck avatar mihauck commented on August 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.