mirror of
https://github.com/gjkcz/ansible-void.git
synced 2024-11-01 00:45:59 +01:00
Simpler service handling
This commit is contained in:
parent
b15337e2ae
commit
b39bc3b0b1
24
setup.yaml
24
setup.yaml
@ -20,37 +20,29 @@
|
|||||||
hosts: all
|
hosts: all
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install Software
|
- name: Install services
|
||||||
community.general.xbps:
|
community.general.xbps:
|
||||||
name:
|
name:
|
||||||
- avahi
|
- avahi
|
||||||
- chrony
|
- chrony
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Enable Avahi service
|
- name: Enable services
|
||||||
community.general.runit:
|
community.general.runit:
|
||||||
name: avahi-daemon
|
name: '{{ item }}'
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
loop:
|
||||||
|
- avahi-daemon
|
||||||
|
- chronyd
|
||||||
|
|
||||||
- name: Enable Chrony service
|
- name: Disable unneeded services
|
||||||
community.general.runit:
|
|
||||||
name: chronyd
|
|
||||||
enabled: true
|
|
||||||
state: started
|
|
||||||
|
|
||||||
- name: Disable wpa_supplicant
|
|
||||||
community.general.runit:
|
|
||||||
name: wpa_supplicant
|
|
||||||
enabled: false
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
- name: Disable redundant TTYs
|
|
||||||
community.general.runit:
|
community.general.runit:
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
enabled: false
|
enabled: false
|
||||||
state: stopped
|
state: stopped
|
||||||
loop:
|
loop:
|
||||||
|
- wpa_supplicant
|
||||||
- agetty-tty3
|
- agetty-tty3
|
||||||
- agetty-tty4
|
- agetty-tty4
|
||||||
- agetty-tty5
|
- agetty-tty5
|
||||||
|
Loading…
Reference in New Issue
Block a user