fix cis support for all distros

This commit is contained in:
2024-04-17 14:09:32 +02:00
parent 4b98ec1434
commit 6dd31cc95f
3 changed files with 21 additions and 13 deletions

View File

@@ -97,7 +97,6 @@
command: arch-chroot /mnt {% if os | lower == "archlinux" %}/usr/sbin/mkinitcpio -P{% elif os | lower not in ["debian11", "debian12", "ubuntu", "ubuntu-lts", "archlinux"] %}/usr/bin/dracut --regenerate-all --force{% else %}echo "Skipping initramfs regeneration"{% endif %}
- name: Extra Configuration
when: os | lower != "archlinux"
block:
- name: Append lines to vimrc
ignore_errors: true
@@ -113,6 +112,7 @@
- "set mouse=a"
- name: Copy FirstRun Script
when: os | lower != "archlinux"
template:
src: firstrun.sh.j2
dest: /mnt/root/firstrun.sh