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
2019-01-24 02:54:53 +00:00
defaults Add defaults/main.yml 2019-01-24 02:18:02 +00:00
tasks Rename project_dir to drupal_root, simplify path 2019-01-24 02:41:22 +00:00
templates Add ability to add trusted hosts 2019-01-24 02:54:53 +00:00
README.md Add ability to add trusted hosts 2019-01-24 02:54:53 +00:00

Ansible Role: Drupal settings

drupal_settings:
  - drupal_root: /var/www/web
    sites:
      - name: default
        filename: settings.php # Optional, defaults to 'settings.php'
        settings:
          databases:
            foo:
              bar:
                driver: mysql # Optional, defaults to 'mysql'
                host: localhost # Optional, defaults to 'localhost'
                database: mydatabase
                username: user
                password: secret
          trusted_hosts: # Optional
            - '^example\.com$'
            - '^.+\.example\.com$'
            - '^example\.org$'
            - '^.+\.example\.org$'