mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-02 04:38:14 +00:00
init, dotfiles and install basic roles
This commit is contained in:
commit
46bdf4dda0
21 changed files with 283 additions and 0 deletions
9
roles/installs/tasks/build.yml
Normal file
9
roles/installs/tasks/build.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
- name: Install common packages
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- openssl
|
||||
- perl
|
||||
- ninja-build
|
||||
- git
|
||||
state: latest
|
||||
|
||||
23
roles/installs/tasks/cli.yml
Normal file
23
roles/installs/tasks/cli.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
- name: Install cli tools
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
# shell utils
|
||||
- just
|
||||
- fish
|
||||
- jsonnet
|
||||
|
||||
# edit utils
|
||||
- helix
|
||||
- micro
|
||||
- tmux
|
||||
- tmate
|
||||
- ripgrep
|
||||
|
||||
# git
|
||||
- git-delta
|
||||
- git
|
||||
|
||||
- ansible
|
||||
|
||||
state: latest
|
||||
|
||||
20
roles/installs/tasks/cpp.yml
Normal file
20
roles/installs/tasks/cpp.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
- ansible.builtin.import_tasks: build.yml
|
||||
|
||||
- name: Install tools for cpp dev
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- make
|
||||
- cmake
|
||||
- xmake
|
||||
|
||||
- clang
|
||||
- clang-tools
|
||||
- clang-tools-extra
|
||||
- clang-devel
|
||||
- clang-tools-devel
|
||||
- clang-tools-extra-devel
|
||||
- clang-libs
|
||||
|
||||
- doxygen
|
||||
|
||||
state: latest
|
||||
18
roles/installs/tasks/gui.yml
Normal file
18
roles/installs/tasks/gui.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
- name: Install gui tools
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- jetbrains-mono-fonts
|
||||
|
||||
- kitty
|
||||
- kitty-fish-integration
|
||||
- alacritty
|
||||
|
||||
- kate
|
||||
- okular
|
||||
- gwenview
|
||||
- filelight
|
||||
|
||||
- qt5-qtvirtualkeyboard
|
||||
- hunspell-ru
|
||||
state: latest
|
||||
|
||||
10
roles/installs/tasks/host.yml
Normal file
10
roles/installs/tasks/host.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
- name: Install cli tools for bare metal host
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- distrobox
|
||||
- syncthing
|
||||
- lm_sensors
|
||||
- powertop
|
||||
- ansible
|
||||
state: latest
|
||||
|
||||
25
roles/installs/tasks/javascript.yml
Normal file
25
roles/installs/tasks/javascript.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- name: Install nodejs
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- nodejs
|
||||
- curl
|
||||
state: latest
|
||||
|
||||
- name: Curl is required for bun
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- curl
|
||||
state: latest
|
||||
|
||||
- name: Install bun
|
||||
ansible.builtin.shell:
|
||||
cmd: npm install -g bun
|
||||
|
||||
- name: Get programs list to check fish presence
|
||||
ansible.builtin.package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Update fish path
|
||||
ansible.builtin.shell:
|
||||
cmd: echo 'fish_add_path {{ ansible_env.HOME }}/.bun/bin'
|
||||
when: "'fish' in ansible_facts.packages"
|
||||
9
roles/installs/tasks/lang.yml
Normal file
9
roles/installs/tasks/lang.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
- ansible.builtin.import_tasks: cpp.yml
|
||||
|
||||
- name: Install tools for lang dev
|
||||
ansible.builtin.dnf5:
|
||||
name:
|
||||
- tree-sitter-cli
|
||||
- libtree-sitter
|
||||
- libtree-sitter-devel
|
||||
state: latest
|
||||
20
roles/installs/tasks/main.yml
Normal file
20
roles/installs/tasks/main.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
- ansible.builtin.import_tasks: build.yml
|
||||
when: "'build' in apps"
|
||||
|
||||
- ansible.builtin.import_tasks: cli.yml
|
||||
when: "'cli' in apps"
|
||||
|
||||
- ansible.builtin.import_tasks: cpp.yml
|
||||
when: "'cpp' in apps"
|
||||
|
||||
- ansible.builtin.import_tasks: lang.yml
|
||||
when: "'lang' in apps"
|
||||
|
||||
- ansible.builtin.import_tasks: javascript.yml
|
||||
when: "'javascript' in apps"
|
||||
|
||||
- ansible.builtin.import_tasks: gui.yml
|
||||
when: "'gui' in apps"
|
||||
|
||||
- ansible.builtin.import_tasks: host.yml
|
||||
when: "'host' in apps"
|
||||
Loading…
Add table
Add a link
Reference in a new issue