mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-02 12:48:16 +00:00
names fix, fish config copying, some fixes dn to tests
This commit is contained in:
parent
c2a86623a7
commit
9e97c4c76d
21 changed files with 92 additions and 108 deletions
|
|
@ -1,17 +1,29 @@
|
|||
# shell
|
||||
- name: Import bash config
|
||||
- name: Importing bash config
|
||||
ansible.builtin.import_tasks: bash.yml
|
||||
|
||||
# copy to modify during install ??
|
||||
- name: Link fish configuration directory
|
||||
- name: Creating fish configuration directory
|
||||
ansible.builtin.file:
|
||||
src: '{{ role_path }}/files/.config/fish'
|
||||
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: Link tmux configuration
|
||||
- name: Linking tmux configuration
|
||||
ansible.builtin.file:
|
||||
src: '{{ role_path }}/files/.tmux.conf'
|
||||
dest: '{{ ansible_env.HOME }}/.tmux.conf'
|
||||
|
|
@ -19,14 +31,14 @@
|
|||
force: true
|
||||
|
||||
# TODO: set server keys in some way
|
||||
- name: Link tmate configuration
|
||||
- name: Linking 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
|
||||
- name: Linking helix configuration
|
||||
ansible.builtin.file:
|
||||
src: '{{ role_path }}/files/.config/helix'
|
||||
dest: '{{ ansible_env.HOME }}/.config/helix'
|
||||
|
|
@ -34,12 +46,12 @@
|
|||
force: true
|
||||
|
||||
# path update
|
||||
- name: Get programs list to check fish presence
|
||||
- name: Getting 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
|
||||
- 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: true # change is checked inside fish_add_path
|
||||
changed_when: false
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@
|
|||
state: link
|
||||
force: true
|
||||
|
||||
- name: Debug
|
||||
ansible.builtin.debug:
|
||||
msg: 'Home is {{ ansible_env.HOME }}'
|
||||
|
||||
- name: Link templates
|
||||
ansible.builtin.file:
|
||||
src: '{{ role_path }}/files/.templates'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# TODO: copy directory ??
|
||||
|
||||
# create .ssh in files by hand, use everywere automatically
|
||||
- name: Link gitconfig
|
||||
- name: Link ssh
|
||||
ansible.builtin.file:
|
||||
src: '{{ role_path }}/files/.ssh'
|
||||
dest: '{{ ansible_env.HOME }}/.ssh'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue