Change service -> systemd

This commit is contained in:
Wojciech Kozlowski 2022-09-11 19:08:50 +02:00
parent 8f240b0f0c
commit b800ccbdc8

View File

@ -21,7 +21,7 @@
register: sshd_conf
- name: Restart sshd
service:
systemd:
name: sshd
enabled: yes
state: restarted
@ -44,13 +44,13 @@
register: nftables_conf
- name: Enable/start nftables
service:
systemd:
name: nftables
state: started
enabled: yes
- name: Restart nftables
service:
systemd:
name: nftables
state: restarted
when:
@ -65,7 +65,7 @@
name: systemd-timesyncd
- name: Enable/start NTP
service:
systemd:
name: systemd-timesyncd
enabled: yes
state: started
@ -130,13 +130,13 @@
mode: 0600
- name: Enable/start postfix
service:
systemd:
name: postfix
enabled: yes
state: started
- name: Restart postfix
service:
systemd:
name: postfix
state: restarted
when:
@ -188,13 +188,13 @@
register: fail2ban_sshd_jail
- name: Enable/start fail2ban
service:
systemd:
name: fail2ban
state: started
enabled: yes
- name: Restart fail2ban
service:
systemd:
name: fail2ban
state: restarted
when:
@ -256,13 +256,13 @@
systemd_zfs_scrub_monthly_timer_file is changed
- name: Enable zfs scrub of bpool
service:
systemd:
name: zfs-scrub-monthly@bpool.timer
enabled: yes
state: started
- name: Enable zfs scrub of rpool
service:
systemd:
name: zfs-scrub-monthly@rpool.timer
enabled: yes
state: started
@ -272,7 +272,7 @@
# ----------------------------------------------------------------------------------------------
- name: Enable fstrim
service:
systemd:
name: fstrim.timer
enabled: yes
state: started
@ -299,13 +299,13 @@
systemd_zfs_trim_monthly_timer_file is changed
- name: Enable zfs trim of bpool
service:
systemd:
name: zfs-trim-monthly@bpool.timer
enabled: yes
state: started
- name: Enable zfs trim of rpool
service:
systemd:
name: zfs-trim-monthly@rpool.timer
enabled: yes
state: started
@ -326,13 +326,13 @@
register: apcupsd_conf
- name: Enable/start apcupsd
service:
systemd:
name: apcupsd
enabled: yes
state: started
- name: Restart apcupsd
service:
systemd:
name: apcupsd
state: restarted
when:
@ -354,13 +354,13 @@
register: smartd_conf
- name: Enable/start smartmontools
service:
systemd:
name: smartmontools
enabled: yes
state: started
- name: Restart smartmontools
service:
systemd:
name: smartmontools
state: restarted
when: