Put logrotate,iptables,snapper and smartd to common

This commit is contained in:
Daniel A. Maierhofer
2018-07-13 14:20:25 +02:00
parent 44bfc1367f
commit cf86ac1833
12 changed files with 8 additions and 85 deletions

View File

@@ -1,7 +1,4 @@
---
- name: iptables restore
command: iptables-restore /etc/iptables/rules.v4
- name: zfs - start services
service: "name={{ item }} state=restarted"
with_items:
@@ -11,12 +8,6 @@
- zfs-share
listen: zfs restart
- name: snapper - reload fstab
command: mount -a
- name: restart smartd
service: name=smartd state=restarted
- name: lxc - create authorized_keys file in VM for root
listen: lxc - inital ssh authorized_keys
copy: remote_src=yes src=/root/.ssh/authorized_keys dest="/var/lib/lxc/lxc-{{ item.name }}-{{ item.revision }}/rootfs/root/.ssh/authorized_keys" owner=root group=root mode=0600