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.
Available since LFOps 2.0.0.
Known Limitations¶
There might be more to implement:
Dependent Roles¶
Any LFOps playbook that installs this role runs these for you. Optional ones can be disabled via the playbook’s skip variables.
A web server (for example Apache httpd) with a virtual host configured for Grav must be available (role: linuxfabrik.lfops.apache_httpd).
PHP 7.3.6+ (PHP 8.1 recommended (20220930)) must be installed (roles: linuxfabrik.lfops.repo_remi and linuxfabrik.lfops.php).
Mandatory Role Variables¶
grav__url
The Grav URL, without
http://orhttps://.Type: String.
grav__users
Mandatory if using the Grav Admin Panel. Have a look at the example below for defining a user. The
permissionskey can be eitherafor Admin access only,sfor Site access only andbfor both Admin and Site access.Type: List of dictionaries.
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¶
grav__install_dir
Grav installation directory.
Type: String.
Default:
'/var/www/html/{{ grav__url }}'
grav__on_calendar_selfupgrade
Time to upgrading Grav CMS (Systemd-Timer notation).
Type: String.
Default:
'22:{{ 59 | random(seed=inventory_hostname) }}'
grav__on_calendar_update
Time to update Grav Plugins and Themes (Systemd-Timer notation).
Type: String.
Default:
'23:{{ 59 | random(seed=inventory_hostname) }}'
grav__skip_admin
If set to
true, installation of the Admin Panel plugin will be skipped.Type: Bool.
Default:
false
grav__timer_selfupgrade_enabled
Enables/disables Systemd-Timer for upgrading Grav CMS.
Type: Bool.
Default:
true
grav__timer_update_enabled
Enables/disables Systemd-Timer for updating Grav Plugins and Themes.
Type: Bool.
Default:
true