Installs and configures the greetd login manager.
The role also supports configuring greetd-gtkgreet
and a custom CSS config
for it. Note the additional requirements described below though.
As this role is tested via Molecule one can use that playbook as a starting point:
---
- name: Converge
hosts: all
gather_facts: true
roles:
- role: greetd
The default variables are defined in defaults/main.yml:
# Command to run at start
greetd_config_command: 'agreety --cmd $SHELL'
# The user to run the command as
greetd_config_user: greeter
# The VT to run the greeter on. Can be "next", "current" or a number
# designating the VT (must be a string).
greetd_config_vt: '1'
# List of environments to configure for selection at login
greetd_environments:
- wayfire
# Custom CSS configuration for greetd-gtkgreet (multiline string)
greetd_gtkgreet_css: ''
# List of greetd related packages to install
greetd_packages:
- greetd
- greetd-gtkgreet
Another option is to use ansible-doc
to read the argument specification:
ansible-doc --type role -r roles -e main greetd
This role has no additional role requirements but depends on the greetd package(s) being pre-built and available through a repository (which is the case for Arch Linux).
See LICENSE