ansible-desktop/roles/dotfiles/tasks/main.yml

25 lines
402 B
YAML
Raw Normal View History

2022-05-19 20:24:32 +00:00
---
- 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"