-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreatetestplans.yml
49 lines (43 loc) · 1.33 KB
/
createtestplans.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
---
- name: playbook to provision most of the RPI64Box
hosts: all
vars:
ansible_user: 'root'
test_user_password: \( $CFG->tool_generator_users_password = 'moodle'; \)
become: 'true'
vars_files:
- default.config.yml
pre_tasks:
- debug:
msg: 'Beginning of build: {{ lookup("pipe", "date +%Y-%m-%dT%H:%M:%S%z") }}'
- name: set fact with build start timestamp
set_fact:
build_start: '{{ lookup("pipe", "date +%s") }}'
- name: include customised variables
include_vars: '{{ item }}'
with_fileglob:
- config.yml
post_tasks:
- debug:
msg:
- 'End of build: {{ lookup("pipe", "date +%Y-%m-%dT%H:%M:%S%z") }}'
- 'Build duration: {{ lookup("pipe", "date +%s")|int - build_start|int }} s'
roles:
- moodlereset # Nothing will work from Moodlereset as php runs as www-root.
# - moodleuninstall
# - moodledatabase
# - moodleinstall
# - cleanup
# - moodlebackup
# - createcourses # Now obsolete. As all are created in the test plans
- enabledeveloper
- serverprofile
- createtestplanXX
- createtestplanSS
- createtestplanSM
- createtestplanMM
# - createtestplanML
# - createtestplanLM
# - createtestplanLL
- moodlebackupwithcourses
- phpsysinfo