Skip to content

Commit

Permalink
Security/ Add sysstat package and a handler to enable it
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-gonzalez committed Oct 13, 2024
1 parent 3e0662d commit eef61e8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/base/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,11 @@
enabled: true
become: true
when: ansible_virtualization_role == "guest"

- name: Restart sysstat
ansible.builtin.service:
name: sysstat
state: restarted
enabled: true
become: true
listen: start sysstat
9 changes: 9 additions & 0 deletions roles/base/tasks/Security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,3 +353,12 @@
line: UMASK 027
mode: "0644"
become: true

- name: Security | Install sysstat
tags:
- security
- sysstat
ansible.builtin.package:
name: sysstat
become: true
notify: Restart sysstat

0 comments on commit eef61e8

Please sign in to comment.