Use package instead of apt, move away from TU gds
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: iptables - install iptables-persistent
|
||||
apt: name=iptables-persistent
|
||||
package: name=iptables-persistent
|
||||
|
||||
- name: /etc/iptables/rules.v4
|
||||
template: dest=/etc/iptables/rules.v4 src=iptables_rules_v4.j2 owner=root group=root mode=0644
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
---
|
||||
- name: lxc - install lxc
|
||||
apt: name=lxc
|
||||
package: name=lxc
|
||||
|
||||
- name: lxc - install libpam-cgfs
|
||||
apt: name=libpam-cgfs
|
||||
package: name=libpam-cgfs
|
||||
|
||||
- name: lxc - install bridge-utils
|
||||
apt: name=bridge-utils
|
||||
package: name=bridge-utils
|
||||
|
||||
- name: lxc - install python-lxc
|
||||
apt: name=python-lxc
|
||||
package: name=python-lxc
|
||||
|
||||
- name: lxc - /etc/default/lxc-net
|
||||
copy:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: snapper - install snapper
|
||||
apt: name=snapper
|
||||
package: name=snapper
|
||||
|
||||
- name: snapper - create-config
|
||||
command: snapper create-config /
|
||||
@@ -16,4 +16,5 @@
|
||||
lineinfile:
|
||||
dest: /etc/fstab
|
||||
line: "{{ snapper_blkid.stdout_lines[0] }} /.snapshots btrfs subvol=.snapshots 0 1"
|
||||
when: snapper_blkid.stdout_lines is defined
|
||||
notify: snapper - reload fstab
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
---
|
||||
- name: zfs - linux-headers
|
||||
apt: name=linux-headers-{{ ansible_kernel }}
|
||||
package: name=linux-headers-{{ ansible_kernel }}
|
||||
|
||||
- name: zfs - install ZoL dkms
|
||||
apt: name=zfs-dkms
|
||||
package: name=zfs-dkms
|
||||
|
||||
- name: zfs - install ZoL utils
|
||||
apt: name=zfsutils-linux
|
||||
package: name=zfsutils-linux
|
||||
|
||||
- name: zfs - install zfs-auto-snapshot
|
||||
apt: name=zfs-auto-snapshot
|
||||
package: name=zfs-auto-snapshot
|
||||
|
||||
- name: zfs - zfs-auto-snapshot find cron files
|
||||
shell: find /etc/cron* -type f -name zfs-auto-snapshot
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: install borg
|
||||
apt: name="borgbackup" state=present
|
||||
package: name="borgbackup" state=present
|
||||
|
||||
- name: create repositories
|
||||
file:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: install borg
|
||||
apt: name="borgbackup" state=present
|
||||
package: name="borgbackup" state=present
|
||||
|
||||
- name: create backup user
|
||||
user:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
- name: nut - install
|
||||
apt: name=nut
|
||||
package: name=nut
|
||||
|
||||
- name: nut - port access device
|
||||
command: mknod {{ ups_port }} c {{ ups_port_dev }} creates={{ ups_port }}
|
||||
|
||||
Reference in New Issue
Block a user