Add role for custom commands

This commit is contained in:
Fernando Schauenburg 2019-11-15 21:29:38 +00:00
parent e9133534c4
commit 4c7c0d9e40
7 changed files with 30 additions and 0 deletions

View file

@ -6,6 +6,7 @@
xdg_cache_home: "~/.cache" xdg_cache_home: "~/.cache"
xdg_data_home: "~/.local/share" xdg_data_home: "~/.local/share"
roles: roles:
- bin
- bash - bash
- dircolors - dircolors
- git - git

15
roles/bin/tasks/main.yml Normal file
View file

@ -0,0 +1,15 @@
---
- name: Create local bin directory
file:
path: ~/.local/bin
state: directory
- name: Deploy local commands
file:
src: "{{ item }}"
dest: "~/.local/bin/{{ item | basename }}"
state: link
force: yes
with_fileglob:
- ./*

View file

@ -14,3 +14,17 @@
- config - config
- ignore - ignore
- name: Create bin directory for additional git commands
file:
path: ~/.local/bin
state: directory
- name: Deploy additional git commands
file:
src: "{{ item }}"
dest: "~/.local/bin/{{ item | basename }}"
state: link
force: yes
with_fileglob:
- ./bin/*