31 lines
492 B
YAML
31 lines
492 B
YAML
---
|
|
- name: install required packages
|
|
become: yes
|
|
apt:
|
|
update_cache: yes
|
|
pkg:
|
|
- git
|
|
- make
|
|
|
|
- name: create src dir
|
|
file:
|
|
path: ~/src
|
|
state: directory
|
|
|
|
- name: checkout dotfiles
|
|
git:
|
|
repo: "{{ dotfiles.repo }}"
|
|
dest: "{{ ansible_user_dir }}/src/dotfiles"
|
|
clone: yes
|
|
update: yes
|
|
|
|
- name: create bin dir
|
|
file:
|
|
path: ~/bin
|
|
state: directory
|
|
|
|
- name: install
|
|
make:
|
|
target: install
|
|
chdir: "{{ ansible_user_dir }}/src/dotfiles"
|