Ansible Role glances¶
This role installs glances and drops a snippet into /etc/profile.d/glances.sh that aliases top and glances to glances -t 1. On RHEL 7 the aliases additionally pass --disable-docker to avoid the slow Docker probe.
Available since LFOps 2.0.0.
Mandatory Requirements¶
On RHEL-compatible systems, the EPEL repository (provides the
glancespackage). The companion playbook (playbooks/glances.yml) takes care of this automatically by also running linuxfabrik.lfops.repo_epel on RHEL 7/8/9 hosts.On Rocky Linux 9, the CRB repository (moved from EPEL into the base repo on Rocky 9). The playbook also runs linuxfabrik.lfops.repo_baseos for that distribution / version unless skipped (see below).
glancesis currently not packaged in EPEL 10, so this role fails withNo package glances available.on RHEL 10 and clones (Rocky / Alma 10). Install glances manually (e.g. viapip install glancesin a venv, or from a third-party repo) on those hosts and skip this role.
Optional Playbook Variables¶
glances__skip_repo_baseos
Skip the implicit
linuxfabrik.lfops.repo_baseosinvocation on Rocky Linux 9. Set this if you manage the CRB repository yourself or if the host has no Internet access to the Rocky mirrors.Type: Bool.
Default:
false
Example:
# optional
glances__skip_repo_baseos: true