##################################### ### someone's ansible provisioner ### ##################################### # Part of: https://git.somenet.org/root/pub/somesible.git # 2017-2024 by someone # # cryptsetup-helper # --- - name: install cryptsetup tools apt: pkg: - cryptsetup-bin - cryptsetup-initramfs - cryptsetup-run state: present policy_rc_d: 101 when: cryptsetup_devices is defined tags: "online" ignore_errors: "{{ignore_online_errors | bool}}" - name: silence systemd for all crypt devices copy: src: "systemd-cryptsetup@DEVICE.service" dest: "/etc/systemd/system/systemd-cryptsetup@{{item}}.service" mode: 0644 owner: "root" group: "root" with_items: - "{{cryptsetup_devices}}" when: cryptsetup_devices is defined - name: copy cryptroot-initrd script with askpass fallback copy: src: "cryptroot" dest: "/etc/initramfs-tools/scripts/local-top/cryptroot" mode: 0755 owner: "root" group: "root" when: cryptsetup_devices is defined notify: update-initramfs