Skip to content
This repository was archived by the owner on Aug 21, 2019. It is now read-only.

Commit a1868f8

Browse files
committed
fix permission issues
1 parent 5d27c7e commit a1868f8

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

tasks/install.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@
88
register: _install_deps
99
until: _install_deps is success
1010

11+
- name: Ensure needed directories exist
12+
file:
13+
path: "{{ item }}"
14+
state: directory
15+
owner: "www-data"
16+
group: "www-data"
17+
with_items:
18+
- /var/www/moodle
19+
- "{{ moodle_data_dir }}"
20+
1121
- name: Fetch moodle repository
22+
become: yes
23+
become_user: www-data
1224
git:
1325
repo: "https://git.in.moodle.com/moodle/moodle.git"
1426
dest: /var/www/moodle
1527
version: "{{ moodle_git_version }}"
16-
# version: "MOODLE_34_STABLE"
17-
18-
- name: Ensure data dir exists
19-
file:
20-
path: "{{ moodle_data_dir }}"
21-
state: directory
22-
owner: "www-data"
23-
group: "www-data"

0 commit comments

Comments
 (0)