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 glances package). 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).

  • glances is currently not packaged in EPEL 10, so this role fails with No package glances available. on RHEL 10 and clones (Rocky / Alma 10). Install glances manually (e.g. via pip install glances in a venv, or from a third-party repo) on those hosts and skip this role.

Tags

glances

  • Installs glances and configures the top / glances aliases.

  • Triggers: none.

Optional Playbook Variables

glances__skip_repo_baseos

  • Skip the implicit linuxfabrik.lfops.repo_baseos invocation 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

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich