From bb21cd8bc277995a72c9d747f3ffcd55c718932d Mon Sep 17 00:00:00 2001 From: Vladimir Still <git@vstill.eu> Date: Thu, 3 Feb 2022 09:55:55 +0100 Subject: [PATCH] ansible: Basic settings for bk2 --- ansible/bk2.v.vstill.cz.yml | 121 ++++++++++++++++++------------------ 1 file changed, 60 insertions(+), 61 deletions(-) diff --git a/ansible/bk2.v.vstill.cz.yml b/ansible/bk2.v.vstill.cz.yml index 477770f..2ec584a 100644 --- a/ansible/bk2.v.vstill.cz.yml +++ b/ansible/bk2.v.vstill.cz.yml @@ -8,71 +8,70 @@ admin_email: xstill+bk2@fi.muni.cz tasks: - - fail: - msg: possibly wrong server? - when: ansible_distribution != 'Debian' + - fail: + msg: possibly wrong server? + when: ansible_distribution != 'Debian' - - import_role: - name: common_deb + - import_role: + name: common_deb - - import_role: - name: vstill_deb + - import_role: + name: vstill_deb -# - name: "Setup fstab" -# mount: -# path: '{{item.path}}' -# src: '{{item.src}}' -# fstype: '{{item.fstype}}' -# opts: '{{item.opts|default("defaults")}}' -# dump: "0" -# passno: '{{item.passno|default("0")}}' -# state: '{{item.state|default("mounted")}}' -# with_items: -# - path: "/" -# src: /dev/vg.root/root-deb -# fstype: xfs -# opts: rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota -# passno: 1 -# - path: none -# src: /dev/vg.root/swap -# fstype: swap -# state: present -# - path: /data -# src: /dev/vg.data/data -# fstype: xfs -# opts: rw,relatime,attr2,inode64,noquota,noauto,x-systemd.automount -# passno: 2 -# - path: /mnt/data-krull -# src: /dev/vg.data/data-krull -# fstype: ext4 -# opts: rw,relatime,noauto,x-systemd.automount -# passno: 2 +# - name: "Setup fstab" +# mount: +# path: '{{item.path}}' +# src: '{{item.src}}' +# fstype: '{{item.fstype}}' +# opts: '{{item.opts|default("defaults")}}' +# dump: "0" +# passno: '{{item.passno|default("0")}}' +# state: '{{item.state|default("mounted")}}' +# with_items: +# - path: "/" +# src: /dev/vg.root/root-deb +# fstype: xfs +# opts: rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota +# passno: 1 +# - path: none +# src: /dev/vg.root/swap +# fstype: swap +# state: present +# - path: /data +# src: /dev/vg.data/data +# fstype: xfs +# opts: rw,relatime,attr2,inode64,noquota,noauto,x-systemd.automount +# passno: 2 +# - path: /mnt/data-krull +# src: /dev/vg.data/data-krull +# fstype: ext4 +# opts: rw,relatime,noauto,x-systemd.automount +# passno: 2 - - apt: - pkg: - - grub-efi - - dpkg-dev - - duperemove + - apt: + pkg: + - grub-efi + - dpkg-dev + - duperemove - - apt: - pkg: - - linux-headers-amd64 - - linux-image-amd64 - - cryptsetup-bin + - apt: + pkg: + - linux-headers-amd64 + - linux-image-amd64 + - cryptsetup-bin - - name: Integrity udev rule - copy: - content: | - ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="integrity?*", RUN+="/usr/sbin/integritysetup open $env{DEVNAME} $env{ID_PART_ENTRY_NAME} --integrity sha1" - dest: /etc/udev/rules.d/99-integrity.rules - - - name: Initramfs modules - lineinfile: - regex: '^{{item}}$' - line: '{{item}}' - path: /etc/initramfs-tools/modules - loop: - - raid1 - - raid456 - - dm_integrity + - name: Integrity udev rule + copy: + content: | + ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="integrity?*", RUN+="/usr/sbin/integritysetup open $env{DEVNAME} $env{ID_PART_ENTRY_NAME} --integrity sha1" + dest: /etc/udev/rules.d/99-integrity.rules + - name: Initramfs modules + lineinfile: + regex: '^{{item}}$' + line: '{{item}}' + path: /etc/initramfs-tools/modules + loop: + - raid1 + - raid456 + - dm_integrity -- GitLab