Ansible Role grav
This role installs Grav (a simple file-based flat-file CMS platform) using PHP composer. For keeping Grav, Plugins and Themes up to date the role configures the Grav Package Manager (GPM).
It is possible to configure whether the Grav Admin Panel should be installed (it is installed by default). By default, you can access the admin by pointing your browser to http://grav.example.com/admin. You can simply log in with the username and password set in the role variables.
Mandatory Requirements
Install a web server (for example Apache httpd), and configure a virtual host for Grav. This can be done using the linuxfabrik.lfops.apache_httpd role.
Install PHP 7.3.6+ (PHP 8.1 recommended (20220930)). This can be done using the linuxfabrik.lfops.repo_remi and linuxfabrik.lfops.php role.
If you use the „Grav“ Playbook, this is automatically done for you.
Mandatory Role Variables
Variable |
Description |
---|---|
|
The Grav URL, without |
|
List of dictionaries. Mandatory if using the Grav Admin Panel. Have a look at the example below for defining a user. The |
Example:
# mandatory
grav__url: 'grav.example.com'
grav__users:
- user: 'firstname_lastname'
fullname: 'Firstname Lastname'
password: 'linuxfabrik'
email: 'firstname.lastname@example.com'
permissions: 'b'
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
Grav installation directory. |
|
|
Time to upgrading Grav CMS (Systemd-Timer notation). |
|
|
Time to update Grav Plugins and Themes (Systemd-Timer notation). |
|
|
Bool. If set to |
|
|
Enables/disables Systemd-Timer for upgrading Grav CMS. |
|
|
Enables/disables Systemd-Timer for updating Grav Plugins and Themes. |
|
Known Limitations
There might be more to implement: