31 lines
850 B
YAML
31 lines
850 B
YAML
- name: Create directories
|
|
file:
|
|
path: "{{ install_path }}/{{ item.path }}"
|
|
state: directory
|
|
force: "{{ overwrite_existing }}"
|
|
with_filetree: "skel/"
|
|
when: item.state == 'directory'
|
|
- name: Delete existing private files
|
|
file:
|
|
path: "{{ install_path }}/{{ item.path }}"
|
|
state: absent
|
|
with_filetree: "private/skel/"
|
|
when: item.state == 'file'
|
|
- name: Link files
|
|
file:
|
|
src: "{{ sync_path }}/skel/{{ item.path }}"
|
|
dest: "{{ install_path }}/{{ item.path }}"
|
|
state: link
|
|
force: "{{ overwrite_existing }}"
|
|
with_filetree: "skel/"
|
|
when: item.state == 'file'
|
|
- name: Clone fzf
|
|
git:
|
|
repo: "https://gitea.austenwares.com/stonewareslord/fzf.git"
|
|
dest: "{{ install_path }}/.fzf"
|
|
clone: yes
|
|
update: yes
|
|
force: yes
|
|
- name: Install fzf
|
|
shell: "{{ install_path|quote }}/.fzf/install --bin"
|