Skip to content

Commit

Permalink
feat: add latest Moodle 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreyvanwyk committed Jan 24, 2024
1 parent bd2f8d4 commit bcd357f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ sandbox_versions:
version: 4.1
- branch: MOODLE_402_STABLE
version: 4.2
- branch: MOODLE_403_STABLE
version: 4.3
2 changes: 1 addition & 1 deletion files/website/config/hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,6 @@
*/

'moodle' => [
'versions' => collect(explode(',', env('MOODLE_VERSIONS', '4.2,4.1'))),
'versions' => collect(explode(',', env('MOODLE_VERSIONS', '4.3,4.2,4.1'))),
],
];
13 changes: 8 additions & 5 deletions tasks/reset_moodle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@
sandbox_moodledata: >-
/var/www/moodledata-{{ sandbox_domain }}-moodle-{{ sandbox_item.version }}
sandbox_php_version: "{{
'8.1' if (sandbox_item.branch == 'MOODLE_402_STABLE') or
(sandbox_item.branch == 'MOODLE_401_STABLE')
else '8.0' if (sandbox_item.branch == 'MOODLE_400_STABLE') or
(sandbox_item.branch == 'MOODLE_311_STABLE')
else '7.4' }}"
'8.2'
if sandbox_item.branch in ['MOODLE_403_STABLE', 'MOODLE_402_STABLE']
else '8.1'
if sandbox_item.branch in ['MOODLE_401_STABLE']
else '8.0'
if sandbox_item.branch in ['MOODLE_400_STABLE', 'MOODLE_311_STABLE']
else '7.4'
}}"

- name: Set dependent variables [{{ sandbox_item.version }}]
ansible.builtin.set_fact:
Expand Down

0 comments on commit bcd357f

Please sign in to comment.