-
Notifications
You must be signed in to change notification settings - Fork 1
/
install-york-theme.yml
36 lines (28 loc) · 1.1 KB
/
install-york-theme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
- hosts: webserver
become: yes
# add some vars here so we can run with --start-at-task if desired
vars:
webserver_app_user: "www-data"
vagrant_user: "vagrant"
tasks:
- name: Get york_drupal_theme
git:
repo: https://github.com/yorkulibraries/york_drupal_theme.git
dest: "{{ drupal_core_path }}/themes/custom/york_drupal_theme"
version: main
force: yes
- name: Chown york_drupal_theme
file:
dest: "{{ drupal_core_path }}/themes/custom/york_drupal_theme"
state: directory
owner: "{{ webserver_app_user }}"
group: "{{ webserver_app_user }}"
mode: 0775
recurse: yes
- name: Enable york_drupal_theme
command: "/var/www/html/drupal/vendor/bin/drush --root={{ drupal_core_path }} -y theme:enable york_drupal_theme"
- name: Set york_drupal_theme default
command: "/var/www/html/drupal/vendor/bin/drush --root={{ drupal_core_path }} -y cset system.theme default york_drupal_theme"
- name: Clear cache
command: "/var/www/html/drupal/vendor/bin/drush --root={{ drupal_core_path }} cr"