File tree 10 files changed +21
-28
lines changed
includes/provisioning/tasks
10 files changed +21
-28
lines changed Original file line number Diff line number Diff line change 93
93
state : present
94
94
notify : restart apache
95
95
96
- - name : Remove the MySQL test database.
97
- mysql_db : db=test state=absent
98
-
99
96
- name : Create a MySQL database for Drupal.
100
97
mysql_db : " db={{ domain }} state=present"
101
98
120
117
creates=/usr/local/bin/composer
121
118
122
119
- name : Move Composer into globally-accessible location.
123
- shell : >
120
+ command : >
124
121
mv /tmp/composer.phar /usr/local/bin/composer
125
122
creates=/usr/local/bin/composer
126
123
131
128
dest : /opt/drush
132
129
133
130
- name : Install Drush dependencies with Composer.
134
- shell : >
131
+ command : >
135
132
/usr/local/bin/composer install
136
133
chdir=/opt/drush
137
134
creates=/opt/drush/vendor/autoload.php
149
146
dest : " {{ drupal_core_path }}"
150
147
151
148
- name : Install Drupal dependencies with Composer.
152
- shell : >
149
+ command : >
153
150
/usr/local/bin/composer install
154
151
chdir={{ drupal_core_path }}
155
152
creates={{ drupal_core_path }}/vendor/autoload.php
Original file line number Diff line number Diff line change 12
12
creates=/usr/local/bin/composer
13
13
14
14
- name : Move Composer into globally-accessible location.
15
- shell : >
15
+ command : >
16
16
mv /tmp/composer.phar /usr/local/bin/composer
17
17
creates=/usr/local/bin/composer
Original file line number Diff line number Diff line change 6
6
dest : " {{ drupal_core_path }}"
7
7
8
8
- name : Install Drupal dependencies with Composer.
9
- shell : >
9
+ command : >
10
10
/usr/local/bin/composer install
11
11
chdir={{ drupal_core_path }}
12
12
creates={{ drupal_core_path }}/vendor/autoload.php
Original file line number Diff line number Diff line change 6
6
dest : /opt/drush
7
7
8
8
- name : Install Drush dependencies with Composer.
9
- shell : >
9
+ command : >
10
10
/usr/local/bin/composer install
11
11
chdir=/opt/drush
12
12
creates=/opt/drush/vendor/autoload.php
Original file line number Diff line number Diff line change 1
1
---
2
- - name : Remove the MySQL test database.
3
- mysql_db : db=test state=absent
4
-
5
2
- name : Create a MySQL database for Drupal.
6
3
mysql_db : " db={{ domain }} state=present"
7
4
Original file line number Diff line number Diff line change 5
5
node_apps_location : /usr/local/opt/node
6
6
7
7
pre_tasks :
8
- - name : Install Remi repo.
9
- yum :
10
- name : " https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
11
- state : present
12
-
13
8
- name : Import Remi GPG key.
14
9
rpm_key :
15
10
key : " https://rpms.remirepo.net/RPM-GPG-KEY-remi"
16
11
state : present
17
12
13
+ - name : Install Remi repo.
14
+ yum :
15
+ name : " https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
16
+ state : present
17
+
18
18
- name : Install EPEL repo.
19
19
yum : name=epel-release state=present
20
20
Original file line number Diff line number Diff line change 3
3
become : yes
4
4
5
5
vars :
6
- # Vars can also be passed in via CLI with `--extra-vars="name=value"`.
7
6
node_apps_location : /usr/local/opt/node
8
7
9
8
tasks :
10
- - name : Install Remi repo.
11
- yum :
12
- name : " https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
13
- state : present
14
-
15
9
- name : Import Remi GPG key.
16
10
rpm_key :
17
11
key : " https://rpms.remirepo.net/RPM-GPG-KEY-remi"
18
12
state : present
19
13
14
+ - name : Install Remi repo.
15
+ yum :
16
+ name : " https://rpms.remirepo.net/enterprise/remi-release-7.rpm"
17
+ state : present
18
+
20
19
- name : Install EPEL repo.
21
20
yum : name=epel-release state=present
22
21
Original file line number Diff line number Diff line change @@ -16,6 +16,5 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
16
16
# Ansible provisioner.
17
17
config . vm . provision :ansible do |ansible |
18
18
ansible . playbook = "provisioning/playbook.yml"
19
- ansible . become = true
20
19
end
21
20
end
Original file line number Diff line number Diff line change 1
1
---
2
2
- hosts : all
3
+ become : true
3
4
4
5
vars_files :
5
6
- vars.yml
6
7
7
8
pre_tasks :
8
9
- name : Update apt cache if needed.
9
- apt : update_cache=yes cache_valid_time=3600
10
+ apt : update_cache=true cache_valid_time=3600
10
11
11
12
handlers :
12
13
- name : restart solr
30
31
creates : " {{ download_dir }}/solr-{{ solr_version }}/README.txt"
31
32
32
33
- name : Run Solr installation script.
33
- shell : >
34
+ command : >
34
35
{{ download_dir }}/solr-{{ solr_version }}/bin/install_solr_service.sh
35
36
{{ download_dir }}/solr-{{ solr_version }}.tgz
36
37
-i /opt
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ download_dir: /tmp
6
6
solr_dir : /opt/solr
7
7
8
8
# Solr version and download information.
9
- solr_version : 6.5.1
10
- solr_checksum : sha1:2cc43b837743949a46bd7efbab14b43f6d92b4b8
9
+ solr_version : 8.2.0
10
+ solr_checksum : sha512:beb4e37fc21bf483e3b6bae43cb06a49bc420a0f2b920c97909a69a5efeacba1e7d2ff09ae8018446c87bf007f88f06a59de73cd1923f0967e8206629b0509b6
You can’t perform that action at this time.
0 commit comments