Playbook to manage systemd services
This commit is contained in:
12
systemd.yml
Normal file
12
systemd.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: Disable a service
|
||||||
|
systemd:
|
||||||
|
name: unattended-upgrades
|
||||||
|
enabled: no
|
||||||
|
- name: Stop a service
|
||||||
|
systemd:
|
||||||
|
name: unattended-upgrades
|
||||||
|
state: stopped
|
||||||
Reference in New Issue
Block a user