Skip to content

libraries-fi/ansible-role-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-drupal

Description

A role for deploying Drupal with a set of modules and themes from their git repositories. Inspired by Wim Leers' mr-drupal method.

Requirements

Requires drush and mysql on the target. There is no dependency to a specific role because that really limits the usefulness for anyone not wanting to use those exact roles.

Role Variables

    drupal_config_directory: Absolute path for D8 config.
    drupal_multisite_directory: Absolute path for site files, commonly webroot/sites/default.
    drupal_sites_dir: Directory used for all the drupal (or other) sites on the host.
    dev_group: If you want a group (for dev access) to be set for the site, use this.
    server_admin_email: [email protected]
    site_admin_email: [email protected]

    install_profile: Which install profile to use
    locale: What to set as the locale.
    drupal_git_base: Prefix for drupal.org git repositories.

    site_name: Name of the site.

Notes

  • Only works with Drupal 8
  • No versions are added so Drupal can't track updates
  • .git directories will be inside the webroot
  • Still a bit rough around the edges

Example Playbook

- role: drupal
  site_name: drupal
  core: HEAD
  db:
    user: drupal_user
    name: drupal_db
    password: mypassword

You probably want to put this in a site-specific role as a dependency and specify the variables there.

License

MIT

About

Ansible role for Deploying Drupal from a set of git repositories.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages