mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-25 16:58:43 +00:00
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
|
|
# shell
|
|
- ansible.builtin.import_tasks: bash.yml
|
|
|
|
# copy to modify during install ??
|
|
- name: Link fish configuration directory
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.config/fish'
|
|
dest: '{{ ansible_env.HOME }}/.config/fish'
|
|
state: link
|
|
force: true
|
|
|
|
# apps
|
|
- name: Link tmux configuration
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.tmux.conf'
|
|
dest: '{{ ansible_env.HOME }}/.tmux.conf'
|
|
state: link
|
|
force: true
|
|
|
|
# TODO: set server keys
|
|
- name: Link tmate configuration
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.tmate.conf'
|
|
dest: '{{ ansible_env.HOME }}/.tmate.conf'
|
|
state: link
|
|
force: true
|
|
|
|
- name: Link helix configuration
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.config/helix'
|
|
dest: '{{ ansible_env.HOME }}/.config/helix'
|
|
state: link
|
|
force: true
|
|
|
|
# additional files
|
|
- name: Link scripts
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.bin'
|
|
dest: '{{ ansible_env.HOME }}/.bin'
|
|
state: link
|
|
force: true
|
|
|
|
- name: Link templates
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.templates'
|
|
dest: '{{ ansible_env.HOME }}/.templates'
|
|
state: link
|
|
force: true
|
|
|
|
# path update
|
|
- name: Get programs list to check fish presence
|
|
ansible.builtin.package_facts:
|
|
manager: auto
|
|
|
|
- name: Update fish path to include scripts folder
|
|
ansible.builtin.shell:
|
|
cmd: echo 'fish_add_path {{ ansible_env.HOME }}/.bin'
|
|
when: "'fish' in ansible_facts.packages"
|