Use package instead of apt, move away from TU gds
This commit is contained in:
@@ -33,9 +33,9 @@ common_locales:
|
|||||||
# apt-get common config
|
# apt-get common config
|
||||||
common_apt: True
|
common_apt: True
|
||||||
common_apt_repositories:
|
common_apt_repositories:
|
||||||
- "deb http://gd.tuwien.ac.at/opsys/linux/debian/ {{ ansible_distribution_release }} main contrib non-free"
|
- "deb http://cdn.debian.net/debian/ {{ ansible_distribution_release }} main contrib non-free"
|
||||||
- "deb http://gd.tuwien.ac.at/opsys/linux/debian/ {{ ansible_distribution_release }}-backports main contrib non-free"
|
- "deb http://cdn.debian.net/debian/ {{ ansible_distribution_release }}-backports main contrib non-free"
|
||||||
- "deb http://gd.tuwien.ac.at/opsys/linux/debian/ {{ ansible_distribution_release }}-updates main contrib non-free"
|
- "deb http://cdn.debian.net/debian/ {{ ansible_distribution_release }}-updates main contrib non-free"
|
||||||
- "deb http://security.debian.org/debian-security/ {{ ansible_distribution_release }}/updates main contrib non-free"
|
- "deb http://security.debian.org/debian-security/ {{ ansible_distribution_release }}/updates main contrib non-free"
|
||||||
common_vim_default: False
|
common_vim_default: False
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: iptables - install iptables-persistent
|
- name: iptables - install iptables-persistent
|
||||||
apt: name=iptables-persistent
|
package: name=iptables-persistent
|
||||||
|
|
||||||
- name: /etc/iptables/rules.v4
|
- name: /etc/iptables/rules.v4
|
||||||
template: dest=/etc/iptables/rules.v4 src=iptables_rules_v4.j2 owner=root group=root mode=0644
|
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
|
- name: lxc - install lxc
|
||||||
apt: name=lxc
|
package: name=lxc
|
||||||
|
|
||||||
- name: lxc - install libpam-cgfs
|
- name: lxc - install libpam-cgfs
|
||||||
apt: name=libpam-cgfs
|
package: name=libpam-cgfs
|
||||||
|
|
||||||
- name: lxc - install bridge-utils
|
- name: lxc - install bridge-utils
|
||||||
apt: name=bridge-utils
|
package: name=bridge-utils
|
||||||
|
|
||||||
- name: lxc - install python-lxc
|
- name: lxc - install python-lxc
|
||||||
apt: name=python-lxc
|
package: name=python-lxc
|
||||||
|
|
||||||
- name: lxc - /etc/default/lxc-net
|
- name: lxc - /etc/default/lxc-net
|
||||||
copy:
|
copy:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: snapper - install snapper
|
- name: snapper - install snapper
|
||||||
apt: name=snapper
|
package: name=snapper
|
||||||
|
|
||||||
- name: snapper - create-config
|
- name: snapper - create-config
|
||||||
command: snapper create-config /
|
command: snapper create-config /
|
||||||
@@ -16,4 +16,5 @@
|
|||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/fstab
|
dest: /etc/fstab
|
||||||
line: "{{ snapper_blkid.stdout_lines[0] }} /.snapshots btrfs subvol=.snapshots 0 1"
|
line: "{{ snapper_blkid.stdout_lines[0] }} /.snapshots btrfs subvol=.snapshots 0 1"
|
||||||
|
when: snapper_blkid.stdout_lines is defined
|
||||||
notify: snapper - reload fstab
|
notify: snapper - reload fstab
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: zfs - linux-headers
|
- name: zfs - linux-headers
|
||||||
apt: name=linux-headers-{{ ansible_kernel }}
|
package: name=linux-headers-{{ ansible_kernel }}
|
||||||
|
|
||||||
- name: zfs - install ZoL dkms
|
- name: zfs - install ZoL dkms
|
||||||
apt: name=zfs-dkms
|
package: name=zfs-dkms
|
||||||
|
|
||||||
- name: zfs - install ZoL utils
|
- name: zfs - install ZoL utils
|
||||||
apt: name=zfsutils-linux
|
package: name=zfsutils-linux
|
||||||
|
|
||||||
- name: zfs - install zfs-auto-snapshot
|
- name: zfs - install zfs-auto-snapshot
|
||||||
apt: name=zfs-auto-snapshot
|
package: name=zfs-auto-snapshot
|
||||||
|
|
||||||
- name: zfs - zfs-auto-snapshot find cron files
|
- name: zfs - zfs-auto-snapshot find cron files
|
||||||
shell: find /etc/cron* -type f -name zfs-auto-snapshot
|
shell: find /etc/cron* -type f -name zfs-auto-snapshot
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: install borg
|
- name: install borg
|
||||||
apt: name="borgbackup" state=present
|
package: name="borgbackup" state=present
|
||||||
|
|
||||||
- name: create repositories
|
- name: create repositories
|
||||||
file:
|
file:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: install borg
|
- name: install borg
|
||||||
apt: name="borgbackup" state=present
|
package: name="borgbackup" state=present
|
||||||
|
|
||||||
- name: create backup user
|
- name: create backup user
|
||||||
user:
|
user:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
- name: nut - install
|
- name: nut - install
|
||||||
apt: name=nut
|
package: name=nut
|
||||||
|
|
||||||
- name: nut - port access device
|
- name: nut - port access device
|
||||||
command: mknod {{ ups_port }} c {{ ups_port_dev }} creates={{ ups_port }}
|
command: mknod {{ ups_port }} c {{ ups_port_dev }} creates={{ ups_port }}
|
||||||
|
|||||||
Reference in New Issue
Block a user