mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-25 16:58:43 +00:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
# shell
|
|
- name: Import bash config
|
|
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: fish_add_path {{ ansible_env.HOME }}/.bin
|
|
args:
|
|
executable: /usr/bin/fish
|
|
changed_when: true # change is checked inside fish_add_path
|