In progress...
Warning
This playbook is not intended to be used on a local machine, it will erase all your data. Use it only on a remote host that you can access with SSH and that you don't care about.
Here is the steps to install ArchLinux on a remote host with a custom generated Ansible playbook:
git clone https://github.com/ArthurPV/archlinux-installer.git
cd archlinux-installer
on ArchLinux:
sudo pacman -S ansible sshpass
ansible-galaxy collection install community.general
ssh-keygen -f ./key -t ecdsa -b 521
ssh-copy-id -i ./key.pub <user>@<host>
./generate_playbook.py
ansible-playbook -i ./playbooks/<playbook_name>/inventory.ini ./playbooks/<playbook_name>/playbook.yaml
You can also run the example playbook:
ansible-playbook -i ./playbooks/example/inventory.ini ./playbooks/example/playbook.yaml