Skip to content

A python script that generates a custom Ansible playbook for installing ArchLinux

License

Notifications You must be signed in to change notification settings

ArthurPV/archlinux-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArchLinux Installer

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:

1. Clone repo

git clone https://github.com/ArthurPV/archlinux-installer.git
cd archlinux-installer

2. Install ansible

on ArchLinux:

sudo pacman -S ansible sshpass

3. Install ansible-galaxy roles

ansible-galaxy collection install community.general

4. Generate a SSH key for your host

ssh-keygen -f ./key -t ecdsa -b 521

5. Add your SSH key to your host

ssh-copy-id -i ./key.pub <user>@<host>

6. Generate a custom playbook & run it

./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

About

A python script that generates a custom Ansible playbook for installing ArchLinux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages