An Ansible role for automatically generating settings files for Drupal applications.
This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2021-03-16 09:05:18 +00:00
defaults Add defaults/main.yml 2019-01-24 02:18:02 +00:00
meta Add Galaxy metadata 2020-02-07 20:19:06 +00:00
molecule/default Copy molecule tests from next branch 2020-02-19 02:48:24 +00:00
tasks Ensure that the site directory exists 2020-02-07 17:36:29 +00:00
templates Allow for configuring the MySQL port number 2021-03-16 09:04:14 +00:00
.yamllint Copy molecule tests from next branch 2020-02-19 02:48:24 +00:00
LICENSE Create LICENSE 2019-01-24 03:08:27 +00:00
README.md Document adding the port number 2021-03-16 09:05:18 +00:00

Ansible Role: Drupal settings

A role for automatically generating settings.php files for Drupal 7 and 8 applications.

Example

drupal_settings:
  - drupal_root: /var/www/web
    sites:
      - name: default
        filename: settings.php # Optional, defaults to 'settings.php'
        settings:
          base_url: https://www.example.com # Optional, Drupal 7
          hash_salt: '' # Optional
          databases:
            default: # The database key
              default: # The database target
                driver: mysql # Optional, defaults to 'mysql'
                host: localhost # Optional, defaults to 'localhost'
                port: 3306 # Optional
                database: mydatabase
                username: user
                password: secret
          config_directories: # Optional, Drupal 8
            sync: path/to/config
          trusted_hosts: # Optional, Drupal 8
            - '^example\.com$'
            - '^.+\.example\.com$'
            - '^example\.org$'
            - '^.+\.example\.org$'