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:
10
tasks/base-package-auxiliary-settings-sysstat.yml
Normal file
10
tasks/base-package-auxiliary-settings-sysstat.yml
Normal 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
|
@@ -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'
|
||||||
|
Reference in New Issue
Block a user