mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-25 00:38:42 +00:00
44 lines
1.1 KiB
YAML
44 lines
1.1 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 in some way
|
|
- 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
|
|
|
|
# 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"
|