An Ansible playbook to help install Arch Linux.
After booting from the Arch installation media, you will need to:
- Set the root password using the
passwd
command. - Use
vim
to edit the file/etc/ssh/sshd_config
by changing theChallengeResponseAuthentication
setting toyes
. - Restart the ssh service using
systemctl restart sshd
. - Create a keyfile on your local host containing the password for
your LUKS root volume via
echo -n "your_password" > keyfile
. - Generate a hash for the password to be used on your personal
account using
mkpasswd --method=sha-512
.
At this point we are able to login remotely as root, so we can
populate inventory.yml
and run site.yml
:
ansible-playbook -i inventory.yml site.yml
Note that you may have to fiddle with the UEFI settings in the BIOS in order to get the new installation to boot.
At this point your new Arch Linux system is ready to be configured. The project jsf9k/ansible-home can be used for this purpose.