From 91dd471ed20f3276ea4d5cee99ffee57401df172 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 26 May 2019 11:52:41 +0100 Subject: [PATCH] Use systemd modules --- tasks/boot.yml | 3 ++- tasks/dabapps.yml | 3 ++- tasks/ntp.yml | 3 ++- tasks/power-saving.yml | 6 ++++-- tasks/security.yml | 3 ++- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/tasks/boot.yml b/tasks/boot.yml index a497cc3..702390f 100644 --- a/tasks/boot.yml +++ b/tasks/boot.yml @@ -13,9 +13,10 @@ - 'os-prober' - name: "Enable lightdm" - service: + systemd: name: "lightdm" enabled: true + state: started - name: "Disable PC Speaker" modprobe: diff --git a/tasks/dabapps.yml b/tasks/dabapps.yml index 5206751..e438a2b 100644 --- a/tasks/dabapps.yml +++ b/tasks/dabapps.yml @@ -11,9 +11,10 @@ - name: "Enable redis" - service: + systemd: name: "redis" enabled: true + state: started - name: "Clone DabApps Dotfiles" diff --git a/tasks/ntp.yml b/tasks/ntp.yml index 3a999ce..a579eb3 100644 --- a/tasks/ntp.yml +++ b/tasks/ntp.yml @@ -9,6 +9,7 @@ - ntp - name: Enable NTP service - service: + systemd: name: "ntpd" enabled: true + state: started diff --git a/tasks/power-saving.yml b/tasks/power-saving.yml index 1fe546f..9a4ecb1 100644 --- a/tasks/power-saving.yml +++ b/tasks/power-saving.yml @@ -17,17 +17,19 @@ - xfce4-power-manager - name: Enable TLP services - service: + systemd: name: "{{ item }}" enabled: true + state: started with_items: - tlp - tlp-sleep - name: Enable NBFC - service: + systemd: name: nbfc enabled: true + state: started - name: Install TLP config copy: diff --git a/tasks/security.yml b/tasks/security.yml index e6c975f..9a3f07b 100644 --- a/tasks/security.yml +++ b/tasks/security.yml @@ -26,6 +26,7 @@ owner: "{{ user }}" - name: Enable opensnitch - service: + systemd: name: "opensnitchd" enabled: true + state: started