Skip to content
Snippets Groups Projects
Verified Commit 4325777b authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

roles/install_arch: Make use of systemd-firstboot

Sets a bunch of settings at once.
parent f36a90be
No related branches found
No related tags found
No related merge requests found
...@@ -106,8 +106,14 @@ ...@@ -106,8 +106,14 @@
shell: mdadm --detail --scan >> /mnt/etc/mdadm.conf shell: mdadm --detail --scan >> /mnt/etc/mdadm.conf
when: filesystem == "ext4" when: filesystem == "ext4"
- name: set the hostname - name: configure locale.gen
lineinfile: dest=/mnt/etc/hostname line="{{ hostname }}" create=yes lineinfile: dest=/mnt/etc/locale.gen line="en_US.UTF-8 UTF-8"
- name: run locale-gen inside chroot
command: chroot /mnt locale-gen
- name: run systemd-firstboot
command: chroot /mnt systemd-firstboot --locale=en_US.UTF-8 --timezone=UTC --hostname={{ hostname }}
- name: add mdadm_udev to mkinitcpio.conf - name: add mdadm_udev to mkinitcpio.conf
lineinfile: lineinfile:
...@@ -132,15 +138,6 @@ ...@@ -132,15 +138,6 @@
- name: configure grub - name: configure grub
command: chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg command: chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg
- name: configure zoneinfo
file: src=/usr/share/zoneinfo/UTC dest=/mnt/etc/localtime state=link force=yes
- name: configure locale.gen
lineinfile: dest=/mnt/etc/locale.gen line="en_US.UTF-8 UTF-8"
- name: run locale-gen inside chroot
command: chroot /mnt locale-gen
- name: enable services inside chroot - name: enable services inside chroot
command: chroot /mnt systemctl enable sshd systemd-networkd systemd-resolved command: chroot /mnt systemctl enable sshd systemd-networkd systemd-resolved
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment