-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathjwt.yml
39 lines (34 loc) · 1.25 KB
/
jwt.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
---
- name: Create JWT Key Path
file:
state: directory
path: "{{ webserver_app_jwt_key_path }}"
owner: "{{ webserver_app_user }}"
group: "{{ webserver_app_user }}"
- name: Get SSL keys
include_role:
name: Islandora-Devops.keymaster
vars:
ssl_key_private_output_path: "{{ webserver_app_jwt_key_path }}/private.key"
- name: Create JWT Config Path
file:
state: directory
path: "{{ webserver_app_jwt_config_path }}"
owner: "{{ webserver_app_user }}"
group: "{{ webserver_app_user }}"
- name: Copy Templated Drupal JWT Configuration
template:
src: "{{ item }}"
dest: "{{ webserver_app_jwt_config_path }}/{{ item }}"
owner: "{{ webserver_app_user }}"
group: "{{ webserver_app_user }}"
with_items:
- jwt.config.yml
- key.key.islandora_rsa_key.yml
register: drupal_jwt_config
# Workaround for error validating configurations in islandora_defaults.
- name: Enable Bartik
command: "{{ drush_path }} --root {{ drupal_core_path }} theme:enable bartik -y"
- name: Import JWT Config Into Drupal
command: "{{ drush_path }} --root {{ drupal_core_path }} config-import -y --partial --source={{ webserver_app_jwt_config_path }}"
when: drupal_jwt_config.changed is defined and drupal_jwt_config.changed