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-28 23:41:29 +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 Change array syntax 2019-01-24 03:02:32 +00:00
LICENSE Create LICENSE 2019-01-24 03:08:27 +00:00
README.md Specify Drupal version 2019-01-28 23:41:29 +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:
            default: # The database key
              default: # The database target
                driver: mysql # Optional, defaults to 'mysql'
                host: localhost # Optional, defaults to 'localhost'
                database: mydatabase
                username: user
                password: secret
          trusted_hosts: # Optional, Drupal 8
            - '^example\.com$'
            - '^.+\.example\.com$'
            - '^example\.org$'
            - '^.+\.example\.org$'