-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add failing test for default scenario
Issues: #2
- Loading branch information
1 parent
c362da9
commit 6d75ecd
Showing
7 changed files
with
173 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
# This file is part of Ansible role geoffreyvanwyk.moodle_uninstall. | ||
# | ||
# Ansible role geoffreyvanwyk.moodle_uninstall is free software: you can | ||
# redistribute it and/or modify it under the terms of the GNU General Public | ||
# License as published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# Ansible role geoffreyvanwyk.moodle_uninstall is distributed in the hope that | ||
# it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
# Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along with | ||
# Ansible role geoffreyvanwyk.moodle_uninstall. If not, see | ||
# <https://www.gnu.org/licenses/>. | ||
|
||
## | ||
# Prepares the server before calling the role that is being tested. | ||
# | ||
# @copyright 2023 Geoffrey Bernardo van Wyk (https://geoffreyvanwyk.dev) | ||
## | ||
|
||
- name: Prepare | ||
hosts: all | ||
|
||
tasks: | ||
- name: Update APT package cache | ||
# Sometimes the package list on the server does not contain all the | ||
# available packages. A fresh list has to be downloaded from the Ubuntu | ||
# package repositories. | ||
become: true | ||
ansible.builtin.apt: | ||
update_cache: true | ||
cache_valid_time: "{{ 60 * 60 * 24 }}" # seconds => 24 hours | ||
|
||
- name: Install Moodle | ||
ansible.builtin.include_role: | ||
name: geoffreyvanwyk.moodle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
# This file is part of Ansible role geoffreyvanwyk.moodle_uninstall. | ||
# | ||
# Ansible role geoffreyvanwyk.moodle_uninstall is free software: you can | ||
# redistribute it and/or modify it under the terms of the GNU General Public | ||
# License as published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# Ansible role geoffreyvanwyk.moodle_uninstall is distributed in the hope that | ||
# it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
# Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along with | ||
# Ansible role geoffreyvanwyk.moodle_uninstall. If not, see | ||
# <https://www.gnu.org/licenses/>. | ||
|
||
## | ||
# Override variables for this Molecule scenario. | ||
# | ||
# @copyright 2023 Geoffrey Bernardo van Wyk (https://geoffreyvanwyk.dev) | ||
## | ||
|
||
moodle_deploy_destination: /var/www/html/moodle | ||
moodle_cfg_dataroot: /var/www/moodledata-127.0.0.1-moodle | ||
moodle_cfg_dbtype: pgsql | ||
moodle_cfg_dbname: moodle | ||
moodle_web_apache_conf: moodle_127.0.0.1-moodle.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
# This file is part of Ansible role geoffreyvanwyk.moodle_uninstall. | ||
# | ||
# Ansible role geoffreyvanwyk.moodle_uninstall is free software: you can | ||
# redistribute it and/or modify it under the terms of the GNU General Public | ||
# License as published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# Ansible role geoffreyvanwyk.moodle_uninstall is distributed in the hope that | ||
# it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
# Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along with | ||
# Ansible role geoffreyvanwyk.moodle_uninstall. If not, see | ||
# <https://www.gnu.org/licenses/>. | ||
|
||
## | ||
# List of roles on which this role depends. | ||
# | ||
# @copyright 2023 Geoffrey Bernardo van Wyk (https://geoffreyvanwyk.dev) | ||
## | ||
|
||
- name: geoffreyvanwyk.moodle |