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

roles/install_arch: Actually make resolved useful

parent 4325777b
No related branches found
No related tags found
No related merge requests found
...@@ -138,6 +138,12 @@ ...@@ -138,6 +138,12 @@
- 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 nss
lineinfile:
dest: /mnt/etc/nsswitch.conf
regexp: '^hosts:'
line: 'hosts: files mymachines resolve myhostname'
- 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