Make stuff run on Mint VM at work

This commit is contained in:
sebastian
2025-04-23 08:08:55 +02:00
parent c5007a319e
commit 1f9ccf890e
4 changed files with 106 additions and 15 deletions

View File

@@ -33,7 +33,7 @@
- mosh
- nmap
- tcpdump
- fdfind
- fd-find
ignore_errors: true
- name: Install additionall packages...
@@ -56,7 +56,7 @@
ignore_errors: true
- name: Install additionall packages...
- name: Install additional packages...
ansible.builtin.package:
name:
- eza
@@ -76,25 +76,54 @@
mode: "0755"
owner: "{{ regular_user }}"
- name: Installing Nerdfonts
ansible.builtin.unarchive:
#src: https://github.com/eliheuer/caskaydia-cove/archive/refs/heads/master.zip
src: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/CascadiaCode.zip
dest: "~{{ regular_user }}/.fonts/"
remote_src: true
mode: "0755"
owner: "{{ regular_user }}"
- name: Install Oh My Posh
ansible.builtin.shell: curl -s https://ohmyposh.dev/install.sh | bash -s
args:
creates: ~/bin/oh-my-posh # Prevents rerunning if already installed
become: false # Set to true if you want to install system-wide (adjust path accordingly)
- name: Git checkout
- name: Git checkout Tmux Plugin Manager
ansible.builtin.git:
repo: 'https://github.com/tmux-plugins/tpm'
dest: "~{{ regular_user }}/.config/tmux/plugins/"
dest: "~{{ regular_user }}/.config/tmux/plugins/tpm"
clone: yes
update: yes
force: yes
- name: TPM folder mode
ansible.builtin.file:
path: "~{{ regular_user }}/.config/tmux/plugins/"
mode: "0755"
owner: "{{ regular_user }}"
recurse: yes
become: yes
# - name: Installing Nerdfonts
# ansible.builtin.unarchive:
# #src: https://github.com/eliheuer/caskaydia-cove/archive/refs/heads/master.zip
# src: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/CascadiaCode.zip
# dest: "~{{ regular_user }}/.fonts/"
# remote_src: true
# mode: "0755"
# owner: "{{ regular_user }}"
- name: Ensure fonts directory exists
ansible.builtin.file:
path: "~{{ regular_user }}/.fonts"
state: directory
owner: "{{ regular_user }}"
mode: "0755"
- name: Check if specific font files exist
ansible.builtin.find:
paths: "~{{ regular_user }}/.fonts"
patterns: "Cascadia*.ttf" # Adjust for actual font files in the zip
register: existing_fonts
- name: Download and extract Nerdfonts
ansible.builtin.unarchive:
src: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/CascadiaCode.zip
dest: "~{{ regular_user }}/.fonts"
remote_src: true
owner: "{{ regular_user }}"
when: existing_fonts.matched == 0 # Only run if no matching fonts found