Change service -> systemd
This commit is contained in:
parent
8f240b0f0c
commit
b800ccbdc8
34
machine.yml
34
machine.yml
@ -21,7 +21,7 @@
|
|||||||
register: sshd_conf
|
register: sshd_conf
|
||||||
|
|
||||||
- name: Restart sshd
|
- name: Restart sshd
|
||||||
service:
|
systemd:
|
||||||
name: sshd
|
name: sshd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
@ -44,13 +44,13 @@
|
|||||||
register: nftables_conf
|
register: nftables_conf
|
||||||
|
|
||||||
- name: Enable/start nftables
|
- name: Enable/start nftables
|
||||||
service:
|
systemd:
|
||||||
name: nftables
|
name: nftables
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: Restart nftables
|
- name: Restart nftables
|
||||||
service:
|
systemd:
|
||||||
name: nftables
|
name: nftables
|
||||||
state: restarted
|
state: restarted
|
||||||
when:
|
when:
|
||||||
@ -65,7 +65,7 @@
|
|||||||
name: systemd-timesyncd
|
name: systemd-timesyncd
|
||||||
|
|
||||||
- name: Enable/start NTP
|
- name: Enable/start NTP
|
||||||
service:
|
systemd:
|
||||||
name: systemd-timesyncd
|
name: systemd-timesyncd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
@ -130,13 +130,13 @@
|
|||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
||||||
- name: Enable/start postfix
|
- name: Enable/start postfix
|
||||||
service:
|
systemd:
|
||||||
name: postfix
|
name: postfix
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Restart postfix
|
- name: Restart postfix
|
||||||
service:
|
systemd:
|
||||||
name: postfix
|
name: postfix
|
||||||
state: restarted
|
state: restarted
|
||||||
when:
|
when:
|
||||||
@ -188,13 +188,13 @@
|
|||||||
register: fail2ban_sshd_jail
|
register: fail2ban_sshd_jail
|
||||||
|
|
||||||
- name: Enable/start fail2ban
|
- name: Enable/start fail2ban
|
||||||
service:
|
systemd:
|
||||||
name: fail2ban
|
name: fail2ban
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: Restart fail2ban
|
- name: Restart fail2ban
|
||||||
service:
|
systemd:
|
||||||
name: fail2ban
|
name: fail2ban
|
||||||
state: restarted
|
state: restarted
|
||||||
when:
|
when:
|
||||||
@ -256,13 +256,13 @@
|
|||||||
systemd_zfs_scrub_monthly_timer_file is changed
|
systemd_zfs_scrub_monthly_timer_file is changed
|
||||||
|
|
||||||
- name: Enable zfs scrub of bpool
|
- name: Enable zfs scrub of bpool
|
||||||
service:
|
systemd:
|
||||||
name: zfs-scrub-monthly@bpool.timer
|
name: zfs-scrub-monthly@bpool.timer
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Enable zfs scrub of rpool
|
- name: Enable zfs scrub of rpool
|
||||||
service:
|
systemd:
|
||||||
name: zfs-scrub-monthly@rpool.timer
|
name: zfs-scrub-monthly@rpool.timer
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
@ -272,7 +272,7 @@
|
|||||||
# ----------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
- name: Enable fstrim
|
- name: Enable fstrim
|
||||||
service:
|
systemd:
|
||||||
name: fstrim.timer
|
name: fstrim.timer
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
@ -299,13 +299,13 @@
|
|||||||
systemd_zfs_trim_monthly_timer_file is changed
|
systemd_zfs_trim_monthly_timer_file is changed
|
||||||
|
|
||||||
- name: Enable zfs trim of bpool
|
- name: Enable zfs trim of bpool
|
||||||
service:
|
systemd:
|
||||||
name: zfs-trim-monthly@bpool.timer
|
name: zfs-trim-monthly@bpool.timer
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Enable zfs trim of rpool
|
- name: Enable zfs trim of rpool
|
||||||
service:
|
systemd:
|
||||||
name: zfs-trim-monthly@rpool.timer
|
name: zfs-trim-monthly@rpool.timer
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
@ -326,13 +326,13 @@
|
|||||||
register: apcupsd_conf
|
register: apcupsd_conf
|
||||||
|
|
||||||
- name: Enable/start apcupsd
|
- name: Enable/start apcupsd
|
||||||
service:
|
systemd:
|
||||||
name: apcupsd
|
name: apcupsd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Restart apcupsd
|
- name: Restart apcupsd
|
||||||
service:
|
systemd:
|
||||||
name: apcupsd
|
name: apcupsd
|
||||||
state: restarted
|
state: restarted
|
||||||
when:
|
when:
|
||||||
@ -354,13 +354,13 @@
|
|||||||
register: smartd_conf
|
register: smartd_conf
|
||||||
|
|
||||||
- name: Enable/start smartmontools
|
- name: Enable/start smartmontools
|
||||||
service:
|
systemd:
|
||||||
name: smartmontools
|
name: smartmontools
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Restart smartmontools
|
- name: Restart smartmontools
|
||||||
service:
|
systemd:
|
||||||
name: smartmontools
|
name: smartmontools
|
||||||
state: restarted
|
state: restarted
|
||||||
when:
|
when:
|
||||||
|
Loading…
Reference in New Issue
Block a user