-
Notifications
You must be signed in to change notification settings - Fork 1
/
playbook.yml
56 lines (55 loc) · 1.57 KB
/
playbook.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- hosts: local
tasks:
- name: Setup Solr and Drupal Connector
include_role:
name: pacifica.ansible_drupalsolr
- name: Remove Packages if Keep VCS
command:
cmd: "composer remove {{ item }}"
chdir: /var/www/drupalvm/drupal
loop:
- pacifica/pacifica_profiles
- pacifica/pacifica_theme
- pacifica/pacifica
when:
- "keep_vcs is defined and ( keep_vcs | bool )"
- name: Require Packages if Keep VCS
command:
cmd: "composer require {{ item }}"
chdir: /var/www/drupalvm/drupal
loop:
- pacifica/pacifica:dev-8.x-1.x
- pacifica/pacifica_theme:dev-8.x-1.x
- pacifica/pacifica_profiles:dev-8.x-1.x-vcs
when:
- "keep_vcs is defined and ( keep_vcs | bool )"
- name: Verify Files Ownership
file:
state: directory
path: /var/www/drupalvm/drupal/web/sites/default/files
owner: root
group: apache
mode: 0770
- name: Run Drush Cache Rebuild
retries: 3
delay: 3
register: result
until: (result.get('rc', -1) | int) == 0
shell: drush cr
args:
chdir: /var/www/drupalvm/drupal
- name: Make sure language packs are there
package:
name:
- glibc-all-langpacks
- glibc-langpack-en
- name: Setup PostgreSQL
include_role:
name: geerlingguy.postgresql
- name: Setup Redis
include_role:
name: geerlingguy.redis
- name: Setup Pacifica
include_role:
name: pacifica.ansible_pacifica