From 9e97c4c76d17489c3214bb465f19e22caf3de07c Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 10:54:07 +0300 Subject: [PATCH 01/10] names fix, fish config copying, some fixes dn to tests --- roles/dev/tasks/build.yml | 3 +- roles/dev/tasks/coq.yml | 4 +- roles/dev/tasks/cpp.yml | 7 ++- roles/dev/tasks/haskell.yml | 2 +- roles/dev/tasks/js.yml | 16 +++---- roles/dev/tasks/lang.yml | 5 ++- roles/dev/tasks/ocaml.yml | 7 +-- roles/dev/tasks/truffle.yml | 19 +++++--- roles/dev/tasks/txt.yml | 4 +- roles/dev/tasks/vscode.yml | 1 + .../files/.config/fish/fish_variables | 44 ------------------- roles/dotfiles/files/.profile | 0 roles/dotfiles/tasks/cli.yml | 34 +++++++++----- roles/dotfiles/tasks/scripts.yml | 4 ++ roles/dotfiles/tasks/ssh.yml | 2 +- roles/flatpak/tasks/main.yml | 26 +++++------ roles/installs/tasks/cli.yml | 4 +- roles/installs/tasks/gui.yml | 3 +- roles/installs/tasks/host.yml | 3 +- roles/installs/tasks/main.yml | 8 ++-- roles/installs/tasks/proxy.yml | 4 +- 21 files changed, 92 insertions(+), 108 deletions(-) delete mode 100644 roles/dotfiles/files/.config/fish/fish_variables create mode 100644 roles/dotfiles/files/.profile diff --git a/roles/dev/tasks/build.yml b/roles/dev/tasks/build.yml index fbe4587..89a5461 100644 --- a/roles/dev/tasks/build.yml +++ b/roles/dev/tasks/build.yml @@ -1,4 +1,5 @@ -- name: Install common packages +- name: Installing common packages + become: true ansible.builtin.dnf5: name: - openssl diff --git a/roles/dev/tasks/coq.yml b/roles/dev/tasks/coq.yml index 001fcbd..36bb63f 100644 --- a/roles/dev/tasks/coq.yml +++ b/roles/dev/tasks/coq.yml @@ -1,7 +1,7 @@ -- name: Install vscode (uncoded) +- name: Installing vscode (uncoded) ansible.builtin.import_tasks: vscode.yml -- name: Install ocaml (required for lsp) +- name: Installing ocaml (required for lsp) ansible.builtin.import_tasks: ocaml.yml # TODO: add otion to choose ocaml switch diff --git a/roles/dev/tasks/cpp.yml b/roles/dev/tasks/cpp.yml index f6f22b0..cbc7d1e 100644 --- a/roles/dev/tasks/cpp.yml +++ b/roles/dev/tasks/cpp.yml @@ -2,7 +2,8 @@ # - name: Install build comon deps # ansible.builtin.import_tasks: build.yml -- name: Install tools for cpp dev +- name: Installing tools for cpp dev + become: true ansible.builtin.dnf5: name: - make @@ -10,10 +11,8 @@ - xmake - clang - - clang-tools - - clang-tools-extra - clang-devel - - clang-tools-devel + - clang-tools-extra - clang-tools-extra-devel - clang-libs diff --git a/roles/dev/tasks/haskell.yml b/roles/dev/tasks/haskell.yml index 27b1fa6..a9044e8 100644 --- a/roles/dev/tasks/haskell.yml +++ b/roles/dev/tasks/haskell.yml @@ -10,7 +10,7 @@ register: ghcup_dir # TODO: detect fish install ?? -- name: Install ghcup, stack, lsp server +- name: Installing ghcup, stack, lsp server ansible.builtin.shell: | SHELL='/usr/bin/fish' BOOTSTRAP_HASKELL_NONINTERACTIVE=1 diff --git a/roles/dev/tasks/js.yml b/roles/dev/tasks/js.yml index 145cfce..f034295 100644 --- a/roles/dev/tasks/js.yml +++ b/roles/dev/tasks/js.yml @@ -1,18 +1,14 @@ -- name: Install nodejs +- name: Installing nodejs & curl (for bun) + become: true ansible.builtin.dnf5: name: - nodejs - curl state: latest -- name: Curl is required for bun - ansible.builtin.dnf5: - name: - - curl - state: latest - # TODO: use curl script ?? -- name: Install bun +- name: Installing bun + become: true ansible.builtin.command: cmd: npm install -g bun changed_when: true # change is checked inside npm @@ -22,7 +18,7 @@ manager: auto - name: Update fish path for bun - ansible.builtin.shell: fish_add_path {{ ansible_env.HOME }}/.bun/bin + ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/.bun/bin args: executable: /usr/bin/fish - changed_when: true # change is checked inside fish_add_path + changed_when: false diff --git a/roles/dev/tasks/lang.yml b/roles/dev/tasks/lang.yml index 388f1fa..5ca8831 100644 --- a/roles/dev/tasks/lang.yml +++ b/roles/dev/tasks/lang.yml @@ -1,7 +1,8 @@ -- name: Install c++ build tools +- name: Installing c++ build tools ansible.builtin.import_tasks: cpp.yml -- name: Install tools for lang dev +- name: Installing tools for lang dev + become: true ansible.builtin.dnf5: name: - tree-sitter-cli diff --git a/roles/dev/tasks/ocaml.yml b/roles/dev/tasks/ocaml.yml index d667079..0e0dc8f 100644 --- a/roles/dev/tasks/ocaml.yml +++ b/roles/dev/tasks/ocaml.yml @@ -1,5 +1,6 @@ # TODO: use ansible ocaml package for install ?? -- name: Install opam +- name: Installing opam + become: true ansible.builtin.dnf5: name: - opam @@ -17,7 +18,7 @@ manager: auto - name: Update fish path for bun - ansible.builtin.shell: fish_add_path {{ ansible_env.HOME }}/.opam/default/bin + ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/.opam/default/bin args: executable: /usr/bin/fish - changed_when: true # change is checked inside fish_add_path + changed_when: false diff --git a/roles/dev/tasks/truffle.yml b/roles/dev/tasks/truffle.yml index d53304e..8d8d24d 100644 --- a/roles/dev/tasks/truffle.yml +++ b/roles/dev/tasks/truffle.yml @@ -5,25 +5,34 @@ mode: a # install tools -- name: Install openjdk +- name: Installing openjdk + become: true ansible.builtin.dnf5: name: - java-latest-openjdk - maven state: latest -- name: "Installing graalvm 23" +- name: Creating graalvm dir + ansible.builtin.file: + path: "{{ ansible_env.HOME }}/truffle/graalvm-23" + state: directory + mode: a +- name: Installing graalvm 23 ansible.builtin.unarchive: remote_src: true src: "https://download.oracle.com/graalvm/23/latest/graalvm-jdk-23_linux-x64_bin.tar.gz" - dest: "{{ ansible_env.HOME }}/truffle/graalvm" + dest: "{{ ansible_env.HOME }}/truffle/graalvm-23" mode: a keep_newer: true + extra_opts: [--strip-components=1] - name: Select graalvm as java + become: true community.general.alternatives: name: java - path: "{{ ansible_env.HOME }}/truffle/graalvm-jdk-23.0.2+7.1/jre/bin/java" + link: /usr/bin/java + path: "{{ ansible_env.HOME }}/truffle/graalvm-23/bin/java" -- name: Install Intellij IDEA +- name: Installing Intellij IDEA ansible.builtin.include_role: name: gantsign.intellij diff --git a/roles/dev/tasks/txt.yml b/roles/dev/tasks/txt.yml index e225b44..02fb079 100644 --- a/roles/dev/tasks/txt.yml +++ b/roles/dev/tasks/txt.yml @@ -5,7 +5,7 @@ action: latest_release register: typst_version -- name: "Installing typst {{ typst_version.tag }}" +- name: Installing typst {{ typst_version.tag }} become: true ansible.builtin.unarchive: remote_src: true @@ -26,7 +26,7 @@ action: latest_release register: tinymist_version -- name: "Installing tinymist (typst lsp) {{ tinymist_version.tag }}" +- name: Installing tinymist (typst lsp) {{ tinymist_version.tag }} become: true ansible.builtin.unarchive: remote_src: true diff --git a/roles/dev/tasks/vscode.yml b/roles/dev/tasks/vscode.yml index 6aa535c..423201a 100644 --- a/roles/dev/tasks/vscode.yml +++ b/roles/dev/tasks/vscode.yml @@ -1,4 +1,5 @@ - name: Installing vscode deps + become: true ansible.builtin.dnf5: name: - fuse diff --git a/roles/dotfiles/files/.config/fish/fish_variables b/roles/dotfiles/files/.config/fish/fish_variables deleted file mode 100644 index 14730eb..0000000 --- a/roles/dotfiles/files/.config/fish/fish_variables +++ /dev/null @@ -1,44 +0,0 @@ -# This file contains fish universal variable definitions. -# VERSION: 3.0 -SETUVAR __fish_initialized:3400 -SETUVAR fish_color_autosuggestion:4D5566 -SETUVAR fish_color_cancel:\x2dr -SETUVAR fish_color_command:39BAE6 -SETUVAR fish_color_comment:626A73 -SETUVAR fish_color_cwd:59C2FF -SETUVAR fish_color_cwd_root:red -SETUVAR fish_color_end:F29668 -SETUVAR fish_color_error:FF3333 -SETUVAR fish_color_escape:95E6CB -SETUVAR fish_color_history_current:\x2d\x2dbold -SETUVAR fish_color_host:normal -SETUVAR fish_color_host_remote:yellow -SETUVAR fish_color_keyword:39BAE6 -SETUVAR fish_color_match:F07178 -SETUVAR fish_color_normal:B3B1AD -SETUVAR fish_color_operator:E6B450 -SETUVAR fish_color_option:B3B1AD -SETUVAR fish_color_param:B3B1AD -SETUVAR fish_color_quote:C2D94C -SETUVAR fish_color_redirection:FFEE99 -SETUVAR fish_color_search_match:\x2d\x2dbackground\x3dE6B450 -SETUVAR fish_color_selection:\x2d\x2dbackground\x3dE6B450 -SETUVAR fish_color_status:red -SETUVAR fish_color_user:brgreen -SETUVAR fish_color_valid_path:\x2d\x2dunderline -SETUVAR fish_greeting:\x1d -SETUVAR fish_key_bindings:fish_default_key_bindings -SETUVAR fish_pager_color_background:\x1d -SETUVAR fish_pager_color_completion:normal -SETUVAR fish_pager_color_description:B3A06D\x1eyellow -SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline -SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan -SETUVAR fish_pager_color_secondary_background:\x1d -SETUVAR fish_pager_color_secondary_completion:\x1d -SETUVAR fish_pager_color_secondary_description:\x1d -SETUVAR fish_pager_color_secondary_prefix:\x1d -SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dE6B450 -SETUVAR fish_pager_color_selected_completion:\x1d -SETUVAR fish_pager_color_selected_description:\x1d -SETUVAR fish_pager_color_selected_prefix:\x1d -SETUVAR fish_user_paths:/home/dragon/\x2elocal/bin diff --git a/roles/dotfiles/files/.profile b/roles/dotfiles/files/.profile new file mode 100644 index 0000000..e69de29 diff --git a/roles/dotfiles/tasks/cli.yml b/roles/dotfiles/tasks/cli.yml index bcb571c..9f3c143 100644 --- a/roles/dotfiles/tasks/cli.yml +++ b/roles/dotfiles/tasks/cli.yml @@ -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 diff --git a/roles/dotfiles/tasks/scripts.yml b/roles/dotfiles/tasks/scripts.yml index 5f14598..1292ee9 100644 --- a/roles/dotfiles/tasks/scripts.yml +++ b/roles/dotfiles/tasks/scripts.yml @@ -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' diff --git a/roles/dotfiles/tasks/ssh.yml b/roles/dotfiles/tasks/ssh.yml index 699ead0..9c59455 100644 --- a/roles/dotfiles/tasks/ssh.yml +++ b/roles/dotfiles/tasks/ssh.yml @@ -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' diff --git a/roles/flatpak/tasks/main.yml b/roles/flatpak/tasks/main.yml index 40a2365..74760b7 100644 --- a/roles/flatpak/tasks/main.yml +++ b/roles/flatpak/tasks/main.yml @@ -1,4 +1,4 @@ -- name: Install flatpak +- name: Installing flatpak become: true ansible.builtin.dnf5: name: @@ -12,7 +12,7 @@ flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo method: user -- name: Install utils +- name: Installing utils community.general.flatpak: name: - com.github.tchx84.Flatseal @@ -36,7 +36,7 @@ method: user when: "'utils' in flatpak_apps" -- name: Install web browsers +- name: Installing web browsers community.general.flatpak: name: - io.gitlab.librewolf-community @@ -46,7 +46,7 @@ method: user when: "'web' in flatpak_apps" -- name: Install docs tools +- name: Installing docs tools community.general.flatpak: name: - com.github.arminstraub.krop @@ -61,7 +61,7 @@ method: user when: "'docs' in flatpak_apps" -- name: Install notes tools +- name: Installing notes tools community.general.flatpak: name: - com.github.flxzt.rnote @@ -70,7 +70,7 @@ method: user when: "'notes' in flatpak_apps" -- name: Install ai tools +- name: Installing ai tools community.general.flatpak: name: - com.jeffser.Alpaca @@ -78,7 +78,7 @@ method: user when: "'ai' in flatpak_apps" -- name: Install art tools +- name: Installing art tools community.general.flatpak: name: - io.github.guillaumechereau.Goxel @@ -92,7 +92,7 @@ method: user when: "'art' in flatpak_apps" -- name: Install tools for things production +- name: Installing tools for things production community.general.flatpak: name: - org.kicad.KiCad @@ -101,7 +101,7 @@ method: user when: "'production' in flatpak_apps" -- name: Install gamedev tools +- name: Installing gamedev tools community.general.flatpak: name: - org.godotengine.GodotSharp @@ -111,7 +111,7 @@ method: user when: "'gamedev' in flatpak_apps" -- name: Install dev tools +- name: Installing dev tools community.general.flatpak: name: - dev.lapce.lapce @@ -126,7 +126,7 @@ method: user when: "'dev' in flatpak_apps" -- name: Install games +- name: Installing games community.general.flatpak: name: - com.usebottles.bottles @@ -143,7 +143,7 @@ method: user when: "'games' in flatpak_apps" -- name: Install messaging apps +- name: Installing messaging apps community.general.flatpak: name: - org.claws_mail.Claws-Mail @@ -157,7 +157,7 @@ method: user when: "'messaging' in flatpak_apps" -- name: Install study apps +- name: Installing study apps community.general.flatpak: name: - org.kde.kig diff --git a/roles/installs/tasks/cli.yml b/roles/installs/tasks/cli.yml index 13db513..6c08482 100644 --- a/roles/installs/tasks/cli.yml +++ b/roles/installs/tasks/cli.yml @@ -1,4 +1,5 @@ -- name: Install cli tools +- name: Installing cli tools + become: true ansible.builtin.dnf5: name: # shells & common utils @@ -29,6 +30,7 @@ # other - ansible - ansible-lint + - cronie state: latest diff --git a/roles/installs/tasks/gui.yml b/roles/installs/tasks/gui.yml index 13acd1e..3d60d36 100644 --- a/roles/installs/tasks/gui.yml +++ b/roles/installs/tasks/gui.yml @@ -1,4 +1,5 @@ -- name: Install gui tools +- name: Installing gui tools + become: true ansible.builtin.dnf5: name: - jetbrains-mono-fonts diff --git a/roles/installs/tasks/host.yml b/roles/installs/tasks/host.yml index 61f35ad..e1c9cb8 100644 --- a/roles/installs/tasks/host.yml +++ b/roles/installs/tasks/host.yml @@ -1,4 +1,5 @@ -- name: Install cli tools for bare metal host +- name: Installing cli tools for bare metal host + become: true ansible.builtin.dnf5: name: - distrobox diff --git a/roles/installs/tasks/main.yml b/roles/installs/tasks/main.yml index 9a1645c..c75534e 100644 --- a/roles/installs/tasks/main.yml +++ b/roles/installs/tasks/main.yml @@ -1,15 +1,15 @@ -- name: Install common cli apps +- name: Installing common cli apps ansible.builtin.import_tasks: cli.yml when: "'cli' in apps" -- name: Install common gui apps +- name: Installing common gui apps ansible.builtin.import_tasks: gui.yml when: "'gui' in apps" -- name: Install pps for host +- name: Installing pps for host ansible.builtin.import_tasks: host.yml when: "'host' in apps" -- name: Install proxies +- name: Installing proxies ansible.builtin.import_tasks: proxy.yml when: "'proxy' in apps" diff --git a/roles/installs/tasks/proxy.yml b/roles/installs/tasks/proxy.yml index d5d2e76..05b599e 100644 --- a/roles/installs/tasks/proxy.yml +++ b/roles/installs/tasks/proxy.yml @@ -5,7 +5,7 @@ action: latest_release register: hola_version -- name: "Installing hola-proxy {{ hola_version.tag }}" +- name: Installing hola-proxy {{ hola_version.tag }} become: true ansible.builtin.get_url: # TODO: insert v before version ?? @@ -21,7 +21,7 @@ action: latest_release register: opera_version -- name: "Installing opera-proxy {{ opera_version.tag }}" +- name: Installing opera-proxy {{ opera_version.tag }} become: true ansible.builtin.get_url: # TODO: insert v before version ?? From 262c37e98f57e52c08a846151030438625962347 Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 12:10:03 +0300 Subject: [PATCH 02/10] fix: scripts path in scripts tasks --- roles/dotfiles/tasks/cli.yml | 11 ----------- roles/dotfiles/tasks/main.yml | 8 ++++---- roles/dotfiles/tasks/scripts.yml | 11 +++++++++++ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/roles/dotfiles/tasks/cli.yml b/roles/dotfiles/tasks/cli.yml index 9f3c143..54e0666 100644 --- a/roles/dotfiles/tasks/cli.yml +++ b/roles/dotfiles/tasks/cli.yml @@ -44,14 +44,3 @@ 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 diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml index 7fd2e25..715a8fa 100644 --- a/roles/dotfiles/tasks/main.yml +++ b/roles/dotfiles/tasks/main.yml @@ -8,6 +8,10 @@ ansible.builtin.import_tasks: bash.yml when: "'bash' in configure" +- name: Script dirs config + ansible.builtin.import_tasks: scripts.yml + when: "'scripts' in configure" + - name: Common cli tools config ansible.builtin.import_tasks: cli.yml when: "'cli' in configure" @@ -24,10 +28,6 @@ ansible.builtin.import_tasks: gui.yml when: "'gui' in configure" -- name: Script dirs config - ansible.builtin.import_tasks: scripts.yml - when: "'scripts' in configure" - - name: Desctop envionment config ansible.builtin.import_tasks: de.yml when: "'de' in configure" diff --git a/roles/dotfiles/tasks/scripts.yml b/roles/dotfiles/tasks/scripts.yml index 1292ee9..344e267 100644 --- a/roles/dotfiles/tasks/scripts.yml +++ b/roles/dotfiles/tasks/scripts.yml @@ -15,3 +15,14 @@ dest: '{{ ansible_env.HOME }}/.templates' 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 From f0756b2a9a4fb958540bf112bc7cae163708713a Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 12:19:28 +0300 Subject: [PATCH 03/10] remove debug, renaming --- roles/dev/tasks/build.yml | 2 +- roles/dotfiles/tasks/bash.yml | 8 ++++---- roles/dotfiles/tasks/git.yml | 2 +- roles/dotfiles/tasks/gui.yml | 6 +++--- roles/dotfiles/tasks/scripts.yml | 8 ++------ roles/dotfiles/tasks/ssh.yml | 2 +- 6 files changed, 12 insertions(+), 16 deletions(-) diff --git a/roles/dev/tasks/build.yml b/roles/dev/tasks/build.yml index 89a5461..9caae74 100644 --- a/roles/dev/tasks/build.yml +++ b/roles/dev/tasks/build.yml @@ -1,4 +1,4 @@ -- name: Installing common packages +- name: Installing common dependencies packages become: true ansible.builtin.dnf5: name: diff --git a/roles/dotfiles/tasks/bash.yml b/roles/dotfiles/tasks/bash.yml index c97335d..9ab406d 100644 --- a/roles/dotfiles/tasks/bash.yml +++ b/roles/dotfiles/tasks/bash.yml @@ -1,25 +1,25 @@ -- name: Link bashrc +- name: Linking bashrc ansible.builtin.file: src: '{{ role_path }}/files/.bashrc' dest: '{{ ansible_env.HOME }}/.bashrc' state: link force: true -- name: Link inputrc +- name: Linking inputrc ansible.builtin.file: src: '{{ role_path }}/files/.inputrc' dest: '{{ ansible_env.HOME }}/.inputrc' state: link force: true -- name: Link profile +- name: Linking profile ansible.builtin.file: src: '{{ role_path }}/files/.profile' dest: '{{ ansible_env.HOME }}/.profile' state: link force: true -- name: Link bash profile +- name: Linking bash profile ansible.builtin.file: src: '{{ role_path }}/files/.bash_profile' dest: '{{ ansible_env.HOME }}/.bash_profile' diff --git a/roles/dotfiles/tasks/git.yml b/roles/dotfiles/tasks/git.yml index dc8b914..b445dcb 100644 --- a/roles/dotfiles/tasks/git.yml +++ b/roles/dotfiles/tasks/git.yml @@ -1,4 +1,4 @@ -- name: Link gitconfig +- name: Linking gitconfig ansible.builtin.file: src: '{{ role_path }}/files/.gitconfig' dest: '{{ ansible_env.HOME }}/.gitconfig' diff --git a/roles/dotfiles/tasks/gui.yml b/roles/dotfiles/tasks/gui.yml index 6f7f6cc..96f30d7 100644 --- a/roles/dotfiles/tasks/gui.yml +++ b/roles/dotfiles/tasks/gui.yml @@ -1,18 +1,18 @@ -- name: Link kitty configuration directory +- name: Linking kitty configuration directory ansible.builtin.file: src: '{{ role_path }}/files/.config/kitty' dest: '{{ ansible_env.HOME }}/.config/kitty' state: link force: true -- name: Link alacritty configuration file +- name: Linking alacritty configuration file ansible.builtin.file: src: '{{ role_path }}/files/.alacritty.toml' dest: '{{ ansible_env.HOME }}/.alacritty.toml' state: link force: true -- name: Link alacritty configuration directory +- name: Linking alacritty configuration directory ansible.builtin.file: src: '{{ role_path }}/files/.config/alacritty' dest: '{{ ansible_env.HOME }}/.config/alacritty' diff --git a/roles/dotfiles/tasks/scripts.yml b/roles/dotfiles/tasks/scripts.yml index 344e267..93af8ef 100644 --- a/roles/dotfiles/tasks/scripts.yml +++ b/roles/dotfiles/tasks/scripts.yml @@ -1,15 +1,11 @@ -- name: Link scripts +- name: Linking scripts ansible.builtin.file: src: '{{ role_path }}/files/.bin' dest: '{{ ansible_env.HOME }}/.bin' state: link force: true -- name: Debug - ansible.builtin.debug: - msg: 'Home is {{ ansible_env.HOME }}' - -- name: Link templates +- name: Linking templates ansible.builtin.file: src: '{{ role_path }}/files/.templates' dest: '{{ ansible_env.HOME }}/.templates' diff --git a/roles/dotfiles/tasks/ssh.yml b/roles/dotfiles/tasks/ssh.yml index 9c59455..416baec 100644 --- a/roles/dotfiles/tasks/ssh.yml +++ b/roles/dotfiles/tasks/ssh.yml @@ -2,7 +2,7 @@ # TODO: copy directory ?? # create .ssh in files by hand, use everywere automatically -- name: Link ssh +- name: Linking ssh ansible.builtin.file: src: '{{ role_path }}/files/.ssh' dest: '{{ ansible_env.HOME }}/.ssh' From 9ac04573a456e61c333c3399b4514f8e68222805 Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 12:28:42 +0300 Subject: [PATCH 04/10] temporary disable perl install --- roles/dev/tasks/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/dev/tasks/build.yml b/roles/dev/tasks/build.yml index 9caae74..b2ce1c5 100644 --- a/roles/dev/tasks/build.yml +++ b/roles/dev/tasks/build.yml @@ -3,7 +3,7 @@ ansible.builtin.dnf5: name: - openssl - - perl + # - perl # NOTE: install does not work (?) - ninja-build - git - make From d89d235b35224da3b41ab7fb0c7ea653334790b4 Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 12:34:41 +0300 Subject: [PATCH 05/10] add ansible install part of installs role --- playbooks/box.yml | 5 +++-- playbooks/host.yml | 5 +++-- roles/installs/tasks/ansible.yml | 10 ++++++++++ roles/installs/tasks/cli.yml | 2 -- roles/installs/tasks/main.yml | 4 ++++ 5 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 roles/installs/tasks/ansible.yml diff --git a/playbooks/box.yml b/playbooks/box.yml index aff664d..6567851 100644 --- a/playbooks/box.yml +++ b/playbooks/box.yml @@ -9,6 +9,7 @@ - ssh - scripts apps: + - ansible - cli vars_prompt: - name: tools_in @@ -19,9 +20,9 @@ ansible.builtin.set_fact: tools: "{{ tools_in.split(',') }}" roles: - # link and copy dotfiles - - role: dotfiles # install apps - role: installs + # link and copy dotfiles + - role: dotfiles # install and setup dev tools - role: dev diff --git a/playbooks/host.yml b/playbooks/host.yml index 907528e..2da5dad 100644 --- a/playbooks/host.yml +++ b/playbooks/host.yml @@ -18,15 +18,16 @@ - ssh - scripts apps: + - ansible - cli pre_tasks: - name: Get tools list ansible.builtin.set_fact: tools: "{{ tools_in.split(',') }}" roles: - # link and copy dotfiles - - role: dotfiles # install apps - role: installs + # link and copy dotfiles + - role: dotfiles # install and setup dev tools - role: dev diff --git a/roles/installs/tasks/ansible.yml b/roles/installs/tasks/ansible.yml new file mode 100644 index 0000000..b0a8f74 --- /dev/null +++ b/roles/installs/tasks/ansible.yml @@ -0,0 +1,10 @@ +- name: Installing ansible packages + become: true + ansible.builtin.dnf5: + name: + - ansible + - ansible-lint + - python3-github3py + - python3-rpm + state: latest + diff --git a/roles/installs/tasks/cli.yml b/roles/installs/tasks/cli.yml index 6c08482..e63fe34 100644 --- a/roles/installs/tasks/cli.yml +++ b/roles/installs/tasks/cli.yml @@ -28,8 +28,6 @@ - git # other - - ansible - - ansible-lint - cronie state: latest diff --git a/roles/installs/tasks/main.yml b/roles/installs/tasks/main.yml index c75534e..c158176 100644 --- a/roles/installs/tasks/main.yml +++ b/roles/installs/tasks/main.yml @@ -1,3 +1,7 @@ +- name: Installing ansible packages + ansible.builtin.import_tasks: ansible.yml + when: "'ansible' in apps" + - name: Installing common cli apps ansible.builtin.import_tasks: cli.yml when: "'cli' in apps" From cf5e20d4e7ef61be85955ffd39d32b8b45724a7c Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 12:40:21 +0300 Subject: [PATCH 06/10] copy fish variables --- .../files/.config/fish/fish_variables | 41 +++++++++++++++++++ roles/dotfiles/tasks/cli.yml | 6 +++ 2 files changed, 47 insertions(+) create mode 100644 roles/dotfiles/files/.config/fish/fish_variables diff --git a/roles/dotfiles/files/.config/fish/fish_variables b/roles/dotfiles/files/.config/fish/fish_variables new file mode 100644 index 0000000..e1d0578 --- /dev/null +++ b/roles/dotfiles/files/.config/fish/fish_variables @@ -0,0 +1,41 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR fish_color_autosuggestion:brblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:normal +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_keyword:normal +SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_option:cyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_background:\x1d +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:yellow\x1e\x2di +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_secondary_background:\x1d +SETUVAR fish_pager_color_secondary_completion:\x1d +SETUVAR fish_pager_color_secondary_description:\x1d +SETUVAR fish_pager_color_secondary_prefix:\x1d +SETUVAR fish_pager_color_selected_background:\x2dr +SETUVAR fish_pager_color_selected_completion:\x1d +SETUVAR fish_pager_color_selected_description:\x1d +SETUVAR fish_pager_color_selected_prefix:\x1d diff --git a/roles/dotfiles/tasks/cli.yml b/roles/dotfiles/tasks/cli.yml index 54e0666..e075196 100644 --- a/roles/dotfiles/tasks/cli.yml +++ b/roles/dotfiles/tasks/cli.yml @@ -22,6 +22,12 @@ state: link force: true +- name: Copying fish configuration (variables) + ansible.builtin.file: + src: '{{ role_path }}/files/.config/fish/fish_variables' + dest: '{{ ansible_env.HOME }}/.config/fish/fish_variables' + force: false + # apps - name: Linking tmux configuration ansible.builtin.file: From 6c46903e4a48e2e4f4cc4da7333724ff526afed1 Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 12:42:05 +0300 Subject: [PATCH 07/10] copy fish variables, fix --- roles/dotfiles/tasks/cli.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/dotfiles/tasks/cli.yml b/roles/dotfiles/tasks/cli.yml index e075196..823dba7 100644 --- a/roles/dotfiles/tasks/cli.yml +++ b/roles/dotfiles/tasks/cli.yml @@ -23,7 +23,7 @@ force: true - name: Copying fish configuration (variables) - ansible.builtin.file: + ansible.builtin.copy: src: '{{ role_path }}/files/.config/fish/fish_variables' dest: '{{ ansible_env.HOME }}/.config/fish/fish_variables' force: false From 78454e200071eb2b3ec4542376c2fd93f7a0a7e1 Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 13:20:55 +0300 Subject: [PATCH 08/10] install bun with install script --- roles/dev/tasks/haskell.yml | 4 ++-- roles/dev/tasks/js.yml | 24 ++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/roles/dev/tasks/haskell.yml b/roles/dev/tasks/haskell.yml index a9044e8..4964a4e 100644 --- a/roles/dev/tasks/haskell.yml +++ b/roles/dev/tasks/haskell.yml @@ -1,10 +1,10 @@ -- name: Download ghcup bootstrap script +- name: Downloading ghcup bootstrap script ansible.builtin.uri: url: https://get-ghcup.haskell.org return_content: true register: ghcup_bootstrap -- name: Check if .ghcup present +- name: Checking if .ghcup present ansible.builtin.stat: path: '{{ ansible_env.HOME }}/.ghcup' register: ghcup_dir diff --git a/roles/dev/tasks/js.yml b/roles/dev/tasks/js.yml index f034295..7c20079 100644 --- a/roles/dev/tasks/js.yml +++ b/roles/dev/tasks/js.yml @@ -13,11 +13,31 @@ cmd: npm install -g bun changed_when: true # change is checked inside npm -- name: Get programs list to check fish presence +- name: Downloading bun install script + ansible.builtin.uri: + url: https://bun.sh/install + return_content: true + register: bun_bootstrap + +- name: Checking if .bun present + ansible.builtin.stat: + path: '{{ ansible_env.HOME }}/.bun' + register: bun_dir + +# TODO: detect fish install ?? +- name: Installing bun + ansible.builtin.shell: | + {{ bun_bootstrap.content }} + args: + executable: /bin/bash + changed_when: not bun_dir.stat.exists + +# update path +- name: Getting programs list to check fish presence ansible.builtin.package_facts: manager: auto -- name: Update fish path for bun +- name: Updating fish path for bun ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/.bun/bin args: executable: /usr/bin/fish From 6a5cb6074674c2fa7593a24214755aaa3b19b5bd Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 14:38:15 +0300 Subject: [PATCH 09/10] intellij idea download fix, gamedev dev tasks --- playbooks/box.yml | 2 +- roles/dev/tasks/gamedev.yml | 64 +++++++++++++++++++++++++++++++++++++ roles/dev/tasks/main.yml | 4 +++ roles/dev/tasks/truffle.yml | 31 ++++++++++++++++-- 4 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 roles/dev/tasks/gamedev.yml diff --git a/playbooks/box.yml b/playbooks/box.yml index 6567851..1ad2b7a 100644 --- a/playbooks/box.yml +++ b/playbooks/box.yml @@ -13,7 +13,7 @@ - cli vars_prompt: - name: tools_in - prompt: "Specify comma separated list of required tool packages (cpp, js, haskell, ocaml, coq, txt, lang, truffle)" + prompt: "Specify comma separated list of required tool packages (cpp, js, haskell, ocaml, coq, txt, lang, truffle, gamedev)" private: false pre_tasks: - name: Get tools list diff --git a/roles/dev/tasks/gamedev.yml b/roles/dev/tasks/gamedev.yml new file mode 100644 index 0000000..a75a99c --- /dev/null +++ b/roles/dev/tasks/gamedev.yml @@ -0,0 +1,64 @@ +- name: Getting programs list to check fish presence + ansible.builtin.package_facts: + manager: auto + +# defold +- name: Creating defold game engine dir + ansible.builtin.file: + path: "{{ ansible_env.HOME }}/truffle/defold" + state: directory + mode: a +- name: Installing defold game engine + ansible.builtin.unarchive: + remote_src: true + src: "https://github.com/defold/defold/releases/latest/download/Defold-x86_64-linux.zip" + dest: "{{ ansible_env.HOME }}/defold" + mode: a + keep_newer: true + extra_opts: [--strip-components=1] +- name: Updating fish path for defold + ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/defold + args: + executable: /usr/bin/fish + changed_when: false + +# lua lsp +- name: Get latest typst version + community.general.github_release: + user: typst + repo: typst + action: latest_release + register: lua_lsp_version + +- name: Installing lua lsp {{ lua_lsp_version.tag }} + become: true + ansible.builtin.unarchive: + remote_src: true + # TODO: remove v before version ?? + src: "https://github.com/LuaLS/lua-language-server/releases/download/{{ lua_lsp_version.tag }}/lua-language-server-{{ lua_lsp_version.tag }}-linux-x64.tar.gz" + dest: "{{ ansible_env.HOME }}/.lua_lsp" + keep_newer: true + mode: a + extra_opts: [--strip-components=1] +- name: Updating fish path for lua lsp + ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/.lua_lsp/bin + args: + executable: /usr/bin/fish + changed_when: false + +# TODO: download directly, add godot c# (?) +# godot +- name: Installing godot game engine + become: true + ansible.builtin.dnf5: + name: + - godot + state: latest + +# raylib +- name: Installing raylib + become: true + ansible.builtin.dnf5: + name: + - raylib-devel + state: latest diff --git a/roles/dev/tasks/main.yml b/roles/dev/tasks/main.yml index 6130574..33ffcde 100644 --- a/roles/dev/tasks/main.yml +++ b/roles/dev/tasks/main.yml @@ -32,3 +32,7 @@ - name: Truffle development environment ansible.builtin.import_tasks: truffle.yml when: "'truffle' in tools" + +- name: Truffle development environment + ansible.builtin.import_tasks: gamedev.yml + when: "'gamedev' in tools" diff --git a/roles/dev/tasks/truffle.yml b/roles/dev/tasks/truffle.yml index 8d8d24d..b118b61 100644 --- a/roles/dev/tasks/truffle.yml +++ b/roles/dev/tasks/truffle.yml @@ -1,3 +1,7 @@ +- name: Getting programs list to check fish presence + ansible.builtin.package_facts: + manager: auto + - name: Creating truffle dir ansible.builtin.file: path: "{{ ansible_env.HOME }}/truffle" @@ -32,9 +36,30 @@ link: /usr/bin/java path: "{{ ansible_env.HOME }}/truffle/graalvm-23/bin/java" -- name: Installing Intellij IDEA - ansible.builtin.include_role: - name: gantsign.intellij +# NOTE: does not work properly (?) +# - name: Installing Intellij IDEA +# ansible.builtin.include_role: +# name: gantsign.intellij + +# intellij idea +- name: Creating intellij idea dir + ansible.builtin.file: + path: "{{ ansible_env.HOME }}/idea" + state: directory + mode: a +- name: Installing intellij idea + ansible.builtin.unarchive: + remote_src: true + src: "https://github.com/JetBrains/intellij-community/releases/download/idea%2F2025.2/ideaIC-252.23892.409.tar.gz" + dest: "{{ ansible_env.HOME }}/idea" + mode: a + keep_newer: true + extra_opts: [--strip-components=1] +- name: Updating fish path for intellil idea + ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/idea/bin + args: + executable: /usr/bin/fish + changed_when: false # examples - name: Clone simple language example From 86f72b810e08faa83824cace47715d8c3632c79a Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Sun, 17 Aug 2025 16:26:47 +0300 Subject: [PATCH 10/10] me fish dirs, fixes --- roles/dev/tasks/gamedev.yml | 2 +- roles/dev/tasks/js.yml | 7 ------- roles/dev/tasks/truffle.yml | 7 ++++--- roles/dotfiles/files/.config/fish/config.fish | 3 --- roles/dotfiles/files/.config/fish/fish_variables | 15 +++------------ roles/dotfiles/tasks/cli.yml | 14 ++++++++++++++ 6 files changed, 22 insertions(+), 26 deletions(-) diff --git a/roles/dev/tasks/gamedev.yml b/roles/dev/tasks/gamedev.yml index a75a99c..7a0d53a 100644 --- a/roles/dev/tasks/gamedev.yml +++ b/roles/dev/tasks/gamedev.yml @@ -5,7 +5,7 @@ # defold - name: Creating defold game engine dir ansible.builtin.file: - path: "{{ ansible_env.HOME }}/truffle/defold" + path: "{{ ansible_env.HOME }}/defold" state: directory mode: a - name: Installing defold game engine diff --git a/roles/dev/tasks/js.yml b/roles/dev/tasks/js.yml index 7c20079..9a53be5 100644 --- a/roles/dev/tasks/js.yml +++ b/roles/dev/tasks/js.yml @@ -6,13 +6,6 @@ - curl state: latest -# TODO: use curl script ?? -- name: Installing bun - become: true - ansible.builtin.command: - cmd: npm install -g bun - changed_when: true # change is checked inside npm - - name: Downloading bun install script ansible.builtin.uri: url: https://bun.sh/install diff --git a/roles/dev/tasks/truffle.yml b/roles/dev/tasks/truffle.yml index b118b61..655d929 100644 --- a/roles/dev/tasks/truffle.yml +++ b/roles/dev/tasks/truffle.yml @@ -46,20 +46,21 @@ ansible.builtin.file: path: "{{ ansible_env.HOME }}/idea" state: directory - mode: a - name: Installing intellij idea ansible.builtin.unarchive: remote_src: true src: "https://github.com/JetBrains/intellij-community/releases/download/idea%2F2025.2/ideaIC-252.23892.409.tar.gz" dest: "{{ ansible_env.HOME }}/idea" - mode: a - keep_newer: true extra_opts: [--strip-components=1] - name: Updating fish path for intellil idea ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/idea/bin args: executable: /usr/bin/fish changed_when: false +# - name: Running idea for the first time +# ansible.builtin.command: +# cmd: "{{ ansible_env.HOME }}/idea/bin/idea.sh" +# changed_when: false # examples - name: Clone simple language example diff --git a/roles/dotfiles/files/.config/fish/config.fish b/roles/dotfiles/files/.config/fish/config.fish index c6a3dc2..d714361 100644 --- a/roles/dotfiles/files/.config/fish/config.fish +++ b/roles/dotfiles/files/.config/fish/config.fish @@ -1,6 +1,3 @@ if status is-interactive # Commands to run in interactive sessions can go here end - -# opam configuration -source /home/dragon/Containers/Dev/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true diff --git a/roles/dotfiles/files/.config/fish/fish_variables b/roles/dotfiles/files/.config/fish/fish_variables index e1d0578..44f644f 100644 --- a/roles/dotfiles/files/.config/fish/fish_variables +++ b/roles/dotfiles/files/.config/fish/fish_variables @@ -1,5 +1,6 @@ # This file contains fish universal variable definitions. # VERSION: 3.0 +SETUVAR __fish_initialized:3800 SETUVAR fish_color_autosuggestion:brblack SETUVAR fish_color_cancel:\x2dr SETUVAR fish_color_command:normal @@ -12,30 +13,20 @@ SETUVAR fish_color_escape:brcyan SETUVAR fish_color_history_current:\x2d\x2dbold SETUVAR fish_color_host:normal SETUVAR fish_color_host_remote:yellow -SETUVAR fish_color_keyword:normal -SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue SETUVAR fish_color_normal:normal SETUVAR fish_color_operator:brcyan -SETUVAR fish_color_option:cyan SETUVAR fish_color_param:cyan SETUVAR fish_color_quote:yellow SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold -SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_search_match:white\x1e\x2d\x2dbackground\x3dbrblack SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack SETUVAR fish_color_status:red SETUVAR fish_color_user:brgreen SETUVAR fish_color_valid_path:\x2d\x2dunderline SETUVAR fish_key_bindings:fish_default_key_bindings -SETUVAR fish_pager_color_background:\x1d SETUVAR fish_pager_color_completion:normal SETUVAR fish_pager_color_description:yellow\x1e\x2di SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan -SETUVAR fish_pager_color_secondary_background:\x1d -SETUVAR fish_pager_color_secondary_completion:\x1d -SETUVAR fish_pager_color_secondary_description:\x1d -SETUVAR fish_pager_color_secondary_prefix:\x1d SETUVAR fish_pager_color_selected_background:\x2dr -SETUVAR fish_pager_color_selected_completion:\x1d -SETUVAR fish_pager_color_selected_description:\x1d -SETUVAR fish_pager_color_selected_prefix:\x1d +SETUVAR fish_user_paths:/home/dragon/Containers/DevHomebrew/idea/bin\x1e/home/dragon/Containers/DevHomebrew/\x2ebin diff --git a/roles/dotfiles/tasks/cli.yml b/roles/dotfiles/tasks/cli.yml index 823dba7..93e38a5 100644 --- a/roles/dotfiles/tasks/cli.yml +++ b/roles/dotfiles/tasks/cli.yml @@ -22,6 +22,20 @@ state: link force: true +- name: Linking fish configuration (completions) + ansible.builtin.file: + src: '{{ role_path }}/files/.config/fish/completions' + dest: '{{ ansible_env.HOME }}/.config/fish/completions' + state: link + force: true + +- name: Linking fish configuration (conf.d) + ansible.builtin.file: + src: '{{ role_path }}/files/.config/fish/conf.d' + dest: '{{ ansible_env.HOME }}/.config/fish/conf.d' + state: link + force: true + - name: Copying fish configuration (variables) ansible.builtin.copy: src: '{{ role_path }}/files/.config/fish/fish_variables'