Initial commit: core, dotfiles, pass, toolbox, emacs, xorg
This commit is contained in:
commit
0f1d5cab1c
21
arch/roles/base/tasks/main.yml
Normal file
21
arch/roles/base/tasks/main.yml
Normal 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
|
17
arch/roles/dotfiles/tasks/main.yml
Normal file
17
arch/roles/dotfiles/tasks/main.yml
Normal 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"
|
2
arch/roles/emacs/meta/main.yml
Normal file
2
arch/roles/emacs/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dependencies:
|
||||||
|
- role: dotfiles
|
11
arch/roles/emacs/tasks/main.yml
Normal file
11
arch/roles/emacs/tasks/main.yml
Normal 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"
|
7
arch/roles/gui/tasks/main.yml
Normal file
7
arch/roles/gui/tasks/main.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
- name: Install xorg
|
||||||
|
become: yes
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- xorg
|
||||||
|
- xorg-xinit
|
||||||
|
state: present
|
12
arch/roles/password_store/tasks/main.yml
Normal file
12
arch/roles/password_store/tasks/main.yml
Normal 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
|
12
arch/roles/toolbox/tasks/main.yml
Normal file
12
arch/roles/toolbox/tasks/main.yml
Normal 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
15
arch/workstation.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user