Initial commit: core, dotfiles, pass, toolbox, emacs, xorg

This commit is contained in:
Jeremy Dormitzer 2020-05-26 21:46:25 -04:00
commit 0f1d5cab1c
8 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,21 @@
- name: Install core packages
become: yes
pacman:
name:
- man-db
- man-pages
- texinfo
- sudo
- git
- emacs
- ansible
- networkmanager
- openssh
state: present
- name: Enable network manager
become: yes
systemd:
name: NetworkManager.service
enabled: yes
state: started

View File

@ -0,0 +1,17 @@
- name: Clone dotfiles
git:
repo: "git@git.jeremydormitzer.com:jdormit/dotfiles.git"
dest: ~/dotfiles
accept_hostkey: true
update: no
- name: Install GNU Stow
become: yes
pacman:
name: stow
state: present
- name: Stow bash dotfiles
command:
chdir: "{{ ansible_env.HOME }}/dotfiles"
cmd: "stow bash"

View File

@ -0,0 +1,2 @@
dependencies:
- role: dotfiles

View File

@ -0,0 +1,11 @@
- name: Install Emacs
become: yes
pacman:
name: emacs
state: present
- name: Configure Emacs
command:
chdir: "{{ ansible_env.HOME }}/dotfiles"
cmd: stow emacs
creates: "{{ ansible_env.HOME }}/init.org"

View File

@ -0,0 +1,7 @@
- name: Install xorg
become: yes
pacman:
name:
- xorg
- xorg-xinit
state: present

View File

@ -0,0 +1,12 @@
- name: Install password store
become: yes
pacman:
name: pass
state: present
- name: Clone password repository
git:
repo: "git@git.jeremydormitzer.com:jdormit/password-store.git"
dest: "~/.password-store"
accept_hostkey: true
update: no

View File

@ -0,0 +1,12 @@
- name: Install development tools
become: yes
pacman:
name:
- gcc
- make
- cmake
- which
- git
- w3m
- gnupg
state: present

15
arch/workstation.yml Normal file
View File

@ -0,0 +1,15 @@
- hosts: localhost
connection: local
tasks:
- import_role:
name: base
- import_role:
name: dotfiles
- import_role:
name: toolbox
- import_role:
name: password_store
- import_role:
name: emacs
- import_role:
name: gui