Skip to content

Automated configuration of an Arch Linux development environment

Notifications You must be signed in to change notification settings

dharmab/ansible-archlinux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Arch Linux Role

This role is intended for automation of first-time setup and configuration file synchronization of an Arch Linux development environment. It should not be used for day-to-day maintenance/updates. Don't run this if you don't have a backup, and don't use this as a replacement for regular manual updates. Using this for regular updates violates The Arch Way and you're going to screw up your machine when manual intervention is required.

Variables

  • archlinux_username (string) - The username of the non-root user this role will create and configure. Note: This user will be added to the docker and libvirt groups, which will make them root-equivalent.
  • archlinux_user_real_name (string) - The non-root user's real name (used for git configuration)
  • archlinux_user_email (string) - The non-root user's email address (used for git configuration)
  • archlinux_enable_openssh_server (bool) - If true, OpenSSH will be enabled and started and connections on port 22/TCP will be allowed from any source. Otherwise, OpenSSH will be disabled and connections on port 22/TCP will be filtered.
  • archlinux_window_manager_font_size (int) - The point size of the font used in window title bars, the i3 status bar and dmenu. Default: 18
  • archlinux_terminal_font_size (int) - The point size of the font used in terminals. Default: 16

Usage

Before running the playbook, perform a full upgrade and resolve any necessary manual interventions. Although I have tested the playbook and have found no destructive side effects, I cannot guarantee your system. Make sure your backups are current.

Install Ansible from the official repositories:

pacman -Syu python ansible

Run the playbook:

ansible-playbook --ask-become-pass site.yml

Answer the prompts and watch it go.

You will have to set the non-root user's password and sudo privileges manually using passwd and visudo. Enabling sudo access for the wheel group should suffice, e.g. %wheel ALL=(ALL) ALL.

Customization

You can select a colorscheme for the shell and Vim by typing one of the commands starting with base16_.

You can place an image file at "~/.wallpaper", and it will automatically be set as the desktop background at login.

Rust

This role installs rustup without a Rust toolchain. See Rustup usage to install a Rust toolchain.

About

Automated configuration of an Arch Linux development environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published