Add dotfiles
This commit is contained in:
parent
c57938fbcb
commit
b180fde76b
@ -5,6 +5,7 @@
|
||||
- ubuntu
|
||||
- firefox
|
||||
- docker
|
||||
- dotfiles
|
||||
- java
|
||||
- jetbrains
|
||||
- compton
|
||||
|
24
roles/dotfiles/tasks/main.yml
Normal file
24
roles/dotfiles/tasks/main.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: install required packages
|
||||
become: yes
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- git
|
||||
- make
|
||||
|
||||
- name: create src dir
|
||||
file:
|
||||
path: ~/src
|
||||
|
||||
- name: checkout dotfiles
|
||||
git:
|
||||
repo: "{{ dotfiles.repo }}"
|
||||
dest: "{{ ansible_user_dir }}/src/dotfiles"
|
||||
clone: yes
|
||||
update: yes
|
||||
|
||||
- name: install
|
||||
make:
|
||||
target: install
|
||||
chdir: "{{ ansible_user_dir }}/src/dotfiles"
|
3
roles/dotfiles/vars/main.yml
Normal file
3
roles/dotfiles/vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
dotfiles:
|
||||
repo: https://github.com/pgrondek/dotfiles.git
|
Loading…
Reference in New Issue
Block a user