Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wtower/ansible-drupal-perms
Ansible role to properly configure the permissions of a Drupal site.
https://github.com/wtower/ansible-drupal-perms
ansible-role devops drupal-7
Last synced: 2 days ago
JSON representation
Ansible role to properly configure the permissions of a Drupal site.
- Host: GitHub
- URL: https://github.com/wtower/ansible-drupal-perms
- Owner: Wtower
- License: bsd-3-clause
- Created: 2016-02-11T15:40:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-11T15:41:01.000Z (almost 9 years ago)
- Last Synced: 2024-12-22T13:31:51.933Z (about 1 month ago)
- Topics: ansible-role, devops, drupal-7
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
drupal-perms
============Ansible role to properly configure the permissions of a Drupal site.
Add the role `drupal-perms` (see examples).
Variables:
- `drupal_sites`: Configuration dictionary
- `site`: Index in `drupal_sites` to the particular Drupal site
- `ansible_user_id`: The user id with access to mysql and mysql database
- `apache_user`: The apache userPlaybook examples
-----------------Configuration file:
---
drupal_sites:
site.com:
staging:
path: /var/www/vhosts/site.com/httpdocs
alias: site.dev-p5qc
prod:
path: /var/www/vhosts/site.com
alias: site.comPlaybook:
---
# Set Drupal permissions
#
# Extra variables:
# - host: provide the local staging host
# - site: provide the site from conf to sync
# - dest: staging/prod
#
# Optional extra variables
# - ansible_user_id: default defined in group_vars
# - apache_group: default is www-data, optionally plesk
#
# Example: ansible-playbook drupal_perms.yml -e "host=dev-p5qc site=a.gr dest=staging"
- hosts: "{{ host }}"
gather_facts: no
vars_files:
- ../conf/drupal_sites.yml
roles:
- drupal_perms