From b39bc3b0b11863377bf01259b1649d563067aa2f Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Mon, 1 May 2023 18:18:57 +0200 Subject: [PATCH] Simpler service handling --- setup.yaml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/setup.yaml b/setup.yaml index 30ec53a..3cfaa3f 100644 --- a/setup.yaml +++ b/setup.yaml @@ -20,37 +20,29 @@ hosts: all tasks: - - name: Install Software + - name: Install services community.general.xbps: name: - avahi - chrony state: present - - name: Enable Avahi service - community.general.runit: - name: avahi-daemon - enabled: true - state: started - - - name: Enable Chrony service + - name: Enable services community.general.runit: - name: chronyd + name: '{{ item }}' enabled: true state: started + loop: + - avahi-daemon + - chronyd - - name: Disable wpa_supplicant - community.general.runit: - name: wpa_supplicant - enabled: false - state: stopped - - - name: Disable redundant TTYs + - name: Disable unneeded services community.general.runit: name: '{{ item }}' enabled: false state: stopped loop: + - wpa_supplicant - agetty-tty3 - agetty-tty4 - agetty-tty5