diff --git a/localhost.yml b/localhost.yml index 78d8035..f1a62d2 100644 --- a/localhost.yml +++ b/localhost.yml @@ -5,6 +5,7 @@ - ubuntu - firefox - docker + - dotfiles - java - jetbrains - compton diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml new file mode 100644 index 0000000..9888729 --- /dev/null +++ b/roles/dotfiles/tasks/main.yml @@ -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" diff --git a/roles/dotfiles/vars/main.yml b/roles/dotfiles/vars/main.yml new file mode 100644 index 0000000..60467d3 --- /dev/null +++ b/roles/dotfiles/vars/main.yml @@ -0,0 +1,3 @@ +--- +dotfiles: + repo: https://github.com/pgrondek/dotfiles.git