Add role for custom commands
This commit is contained in:
parent
e9133534c4
commit
4c7c0d9e40
7 changed files with 30 additions and 0 deletions
|
@ -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
15
roles/bin/tasks/main.yml
Normal 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:
|
||||||
|
- ./*
|
||||||
|
|
|
@ -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/*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue