feat(role): Collect sysstat data with sysstat.service unit

Arch-based systems will never automatically enable a systemd service
unit for the administrator. Check if 'sysstat.service' exists. Start
and enable it if so.
This commit is contained in:
2025-09-19 01:48:24 +02:00
parent cc239de7a0
commit 1933e02290
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# SPDX-License-Identifier: MIT
- name: 'Gather service facts'
ansible.builtin.service_facts:
- name: 'If ''sysstat.service'' exists make sure it''s running'
when: '''sysstat.service'' in ansible_facts[''services'']'
ansible.builtin.service:
name: 'sysstat.service'
state: 'started'
enabled: true

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
- import_tasks: 'base-package-auxiliary-settings-sysstat.yml'
- import_tasks: 'base-package-auxiliary-settings-tmux.yml' - import_tasks: 'base-package-auxiliary-settings-tmux.yml'
- import_tasks: 'base-package-auxiliary-settings-single-package-single-config.yml' - import_tasks: 'base-package-auxiliary-settings-single-package-single-config.yml'