mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-08 04:35:07 +00:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
# shell
|
|
- name: Importing bash config
|
|
ansible.builtin.import_tasks: bash.yml
|
|
|
|
- name: Creating fish configuration directory
|
|
ansible.builtin.file:
|
|
dest: '{{ ansible_env.HOME }}/.config/fish'
|
|
state: directory
|
|
mode: a
|
|
|
|
- name: Linking fish configuration (config)
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.config/fish/config.fish'
|
|
dest: '{{ ansible_env.HOME }}/.config/fish/config.fish'
|
|
state: link
|
|
force: true
|
|
|
|
- name: Linking fish configuration (functions)
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.config/fish/functions'
|
|
dest: '{{ ansible_env.HOME }}/.config/fish/functions'
|
|
state: link
|
|
force: true
|
|
|
|
# apps
|
|
- name: Linking 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: Linking tmate configuration
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.tmate.conf'
|
|
dest: '{{ ansible_env.HOME }}/.tmate.conf'
|
|
state: link
|
|
force: true
|
|
|
|
- name: Linking helix configuration
|
|
ansible.builtin.file:
|
|
src: '{{ role_path }}/files/.config/helix'
|
|
dest: '{{ ansible_env.HOME }}/.config/helix'
|
|
state: link
|
|
force: true
|
|
|
|
# path update
|
|
- name: Getting programs list to check fish presence
|
|
ansible.builtin.package_facts:
|
|
manager: auto
|
|
|
|
- name: Updating fish path to include scripts folder
|
|
ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/.bin
|
|
args:
|
|
executable: /usr/bin/fish
|
|
changed_when: false
|