forked from ymcatwincities/openy-cibox-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reinstall.yml
63 lines (51 loc) · 1.88 KB
/
reinstall.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
56
57
58
59
60
61
62
63
---
# This playbook should be executed using reinstall.sh script
# Developed for ansible version >= 1.7
- hosts: localhost
connection: local
gather_facts: yes
vars_files:
- devops/reinstall/vars/global_settings.yml
- devops/reinstall/vars/environments/global_env.yml
tasks:
- name: Include specific variables per environment
include_vars: "devops/reinstall/vars/environments/{{ pp_environment }}_env.yml"
tags:
- 'settings'
- 'pre-settings'
- 'post-settings'
- 'modules-enable'
- 'drush-commands'
- 'solr-commands'
- 'prepare-environment'
- 'database-backup'
- 'profile-workflow'
- 'sql-workflow'
- include: devops/reinstall/database_backup.yml
when: make_backup
tags: [ 'database-backup' ]
- include: devops/reinstall/prepare_environment.yml
tags: [ 'prepare-environment' ]
- include: devops/reinstall/pre_settings.yml
when: workflow_type == "sql" or not run_installation_process or run_installation_process == 'false'
tags: [ 'settings', 'pre-settings', 'sql-workflow' ]
- include: devops/reinstall/sql_workflow.yml
when: workflow_type == "sql"
tags: [ 'sql-workflow' ]
- include: devops/reinstall/profile_workflow.yml
when: workflow_type == "profile"
tags: [ 'profile-workflow' ]
- include: devops/reinstall/prepare_environment.yml
tags: [ 'prepare-environment' ]
- include: devops/reinstall/post_settings.yml
tags: [ 'settings', 'post-settings' ]
- include: devops/reinstall/modules_enable.yml
tags: [ 'modules-enable' ]
when: run_installation_process
- include: devops/reinstall/solr.yml
tags: [ 'solr-commands' ]
become: yes
when: use_solr
- include: devops/reinstall/drush_commands.yml
tags: [ 'drush-commands' ]
when: run_installation_process