File tree Expand file tree Collapse file tree 2 files changed +22
-26
lines changed
includes/provisioning/tasks Expand file tree Collapse file tree 2 files changed +22
-26
lines changed Original file line number Diff line number Diff line change 144
144
repo : https://git.drupal.org/project/drupal.git
145
145
version : " {{ drupal_core_version }}"
146
146
dest : " {{ drupal_core_path }}"
147
+ register : git_checkout
148
+
149
+ - name : Ensure Drupal codebase is owned by www-data.
150
+ file :
151
+ path : " {{ drupal_core_path }}"
152
+ owner : www-data
153
+ group : www-data
154
+ recurse : true
155
+ when : git_checkout.changed | bool
147
156
148
157
- name : Install Drupal dependencies with Composer.
149
158
command : >
150
159
/usr/local/bin/composer install
151
160
chdir={{ drupal_core_path }}
152
161
creates={{ drupal_core_path }}/vendor/autoload.php
162
+ become_user : www-data
153
163
154
164
- name : Install Drupal.
155
165
command : >
160
170
--root={{ drupal_core_path }}
161
171
creates={{ drupal_core_path }}/sites/default/settings.php
162
172
notify : restart apache
163
-
164
- # SEE: https://drupal.org/node/2121849#comment-8413637
165
- - name : Set permissions properly on settings.php.
166
- file :
167
- path : " {{ drupal_core_path }}/sites/default/settings.php"
168
- mode : 0744
169
-
170
- - name : Set permissions properly on files directory.
171
- file :
172
- path : " {{ drupal_core_path }}/sites/default/files"
173
- mode : 0777
174
- state : directory
175
- recurse : yes
173
+ become_user : www-data
Original file line number Diff line number Diff line change 4
4
repo : https://git.drupal.org/project/drupal.git
5
5
version : " {{ drupal_core_version }}"
6
6
dest : " {{ drupal_core_path }}"
7
+ register : git_checkout
8
+
9
+ - name : Ensure Drupal codebase is owned by www-data.
10
+ file :
11
+ path : " {{ drupal_core_path }}"
12
+ owner : www-data
13
+ group : www-data
14
+ recurse : true
15
+ when : git_checkout.changed | bool
7
16
8
17
- name : Install Drupal dependencies with Composer.
9
18
command : >
10
19
/usr/local/bin/composer install
11
20
chdir={{ drupal_core_path }}
12
21
creates={{ drupal_core_path }}/vendor/autoload.php
22
+ become_user : www-data
13
23
14
24
- name : Install Drupal.
15
25
command : >
20
30
--root={{ drupal_core_path }}
21
31
creates={{ drupal_core_path }}/sites/default/settings.php
22
32
notify : restart apache
23
-
24
- # SEE: https://drupal.org/node/2121849#comment-8413637
25
- - name : Set permissions properly on settings.php.
26
- file :
27
- path : " {{ drupal_core_path }}/sites/default/settings.php"
28
- mode : 0744
29
-
30
- - name : Set permissions properly on files directory.
31
- file :
32
- path : " {{ drupal_core_path }}/sites/default/files"
33
- mode : 0777
34
- state : directory
35
- recurse : yes
33
+ become_user : www-data
You can’t perform that action at this time.
0 commit comments