Add dotfiles

This commit is contained in:
Przemek Grondek 2022-05-19 22:24:32 +02:00
parent c57938fbcb
commit b180fde76b
3 changed files with 28 additions and 0 deletions

View File

@ -5,6 +5,7 @@
- ubuntu - ubuntu
- firefox - firefox
- docker - docker
- dotfiles
- java - java
- jetbrains - jetbrains
- compton - compton

View 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"

View File

@ -0,0 +1,3 @@
---
dotfiles:
repo: https://github.com/pgrondek/dotfiles.git