yasi is yet another stupid installer for Arch Linux built on top of Ansible playbook.
It is based on boring Arch Linux installation guide and allows to get a minimal bootable ready-to-use Arch Linux installation in several minutes.
- Install Ansible
- Download, burn and boot Arch Linux somewhere, enable SSH and get IP address
- Run
ansible-playbook -i <ip-address>, site.yml
, answer questions and be patient
TODO: add local installation scenario
Options can be passed to ansible-playbook via -e option=value
or -e @path/to/option/file
to supress prompts. See man ansible-playbook
for more details.
TODO: add description and usage notes for humans
TODO: think about documentation for role inputs
- bootloader (default: auto)
- device (default: /dev/sda)
- filesystem (default: btrfs)
- firmware (default: auto)
- mirrorlist (default: https://www.archlinux.org/mirrorlist/all/)
- packages (default: none)
- password (default: password)
- reboot (default: no)
- timezone (default: UTC)
- wipe (default: no)
This playbook is idempotent so you can stop and run the playbook again as many as you want but note that changing of initial options after the first run usually is a bad idea (use the same options every time, use auto
or use wipe=yes
).
TODO: install pacaur
TODO: support/describe password/keyless authentication
- [host ]
git clone [email protected]:crazyh/yasi.git && cd yasi
- [host ]
curl -O http://mirror.yandex.ru/archlinux/iso/2016.08.01/archlinux-2016.08.01-dual.iso
- [host ]
dd if=archlinux-2016.08.01-dual.iso of=/dev/sdX
- [target] boot target
- [target]
systemctl start sshd
- [target]
printf "password\npassword" | passwd
- [target]
ip a s enp0s3
- [host ]
ssh-copy-id root@target
- [host ]
ansible-playbook -i target, site.yml
- Ansible 2.1.0.0
- Fedora 23
- Python 2.7.11
- archlinux-2016.06.01-dual.iso (BIOS)
- archlinux-2016.08.01-dual.iso (UEFI)
- Judd Vinet, Aaron Griffin and others for Arch Linux
- Michael DeHaan and Ansible contributors for Ansible