add nfs shares

This commit is contained in:
admin 2025-02-23 15:30:27 +00:00
parent 748eeabbd8
commit 6b2cc0c9b0
4 changed files with 70 additions and 51 deletions

View File

@ -2,7 +2,7 @@
- name: configure host
hosts: all
#connection: local
connection: local
vars_files:
- vault.yml
@ -11,5 +11,8 @@
- import_tasks: tasks/setup.yml
tags: ['setup']
- import_tasks: tasks/steam.yml
tags: ['steam']
- import_tasks: tasks/nvidia.yml
tags: ['nvidia']

View File

@ -21,6 +21,7 @@
- libreoffice-gnome
- monero
- mpv
- dolphin-emu
- obs-studio
- retroarch
- thunderbird
@ -46,6 +47,7 @@
- curl
- exiftool
- ffmpeg
- fonts-fantasque-sans
- fzf
- git
- gnupg
@ -69,23 +71,6 @@
- xxd
- yt-dlp
- name: install steam
become: true
block:
- name: add i386 architecture
ansible.builtin.shell:
cmd:
dpkg --add-architecture i386
- name: install steam-installer
ansible.builtin.apt:
pkg:
- steam-installer
- mesa-vulkan-drivers
- libglx-mesa0:i386
- mesa-vulkan-drivers:i386
- libgl1-mesa-dri:i386
update_cache: true
- name: install signal
become: true
block:
@ -135,9 +120,33 @@
ansible.builtin.shell:
cmd: wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash
#- name: install ollama
# ansible.builtin.shell:
# cmd: curl -fsSL https://ollama.com/install.sh | sh
- name: install ollama
become: true
block:
- name: check if ollama is installed
ansible.builtin.stat:
path: /usr/local/bin/ollama
register: ollama_stat
- name: get install.sh for ollama
ansible.builtin.get_url:
dest: /tmp/ollama.sh
url: https://ollama.com/install.sh
when: not ollama_stat.stat.exists
- name: make ollama.sh executable
ansible.builtin.file:
path: /tmp/ollama.sh
mode: '0755'
when: not ollama_stat.stat.exists
- name: run ollama install script
become: true
args:
executable: /bin/sh
ansible.builtin.shell:
cmd: /tmp/ollama.sh
when: not ollama_stat.stat.exists
- name: install umu-launcher
block:
@ -172,23 +181,23 @@
- name: mount data
ansible.posix.mount:
path: /mnt/data
src: "//{{ truenas_ip }}/data"
fstype: cifs
opts: "defaults,auto,rw,username={{ smb_user }},password={{ smb_pass }}"
src: "{{ truenas_ip }}:/mnt/pool/data"
fstype: nfs
opts: "defaults,auto,rw"
state: mounted
- name: mount services
ansible.posix.mount:
path: /mnt/services
src: "//{{ truenas_ip }}/services"
fstype: cifs
opts: "defaults,auto,rw,username={{ smb_user }},password={{ smb_pass }}"
src: "{{ truenas_ip }}:/mnt/pool/services"
fstype: nfs
opts: "defaults,auto,rw"
state: mounted
- name: mount media
ansible.posix.mount:
path: /mnt/media
src: "//{{ truenas_ip }}/media"
fstype: cifs
opts: "defaults,auto,rw,username={{ smb_user }},password={{ smb_pass }}"
src: "{{ truenas_ip }}:/mnt/pool/media"
fstype: nfs
opts: "defaults,auto,rw"
state: mounted
- name: enable workspace-indicator extension
@ -208,6 +217,7 @@
line: "{{ item }}"
create: yes
with_items:
- "file:///"
- "file:///mnt/data"
- "file:///mnt/services"
- "file:///mnt/media"
@ -216,20 +226,24 @@
- name: gnome settings
ansible.builtin.shell:
cmd: |
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
gsettings set org.gnome.desktop.interface enable-hot-corners false
gnome-extensions enable dash-to-dock@micxgx.gmail.com
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
gsettings set org.gnome.desktop.calendar show-weekdate true
gsettings set org.gnome.desktop.interface clock-show-weekday true
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
gsettings set org.gnome.desktop.interface document-font-name 'Noto Sans 11'
gsettings set org.gnome.desktop.interface enable-hot-corners false
gsettings set org.gnome.desktop.interface font-name 'Noto Sans 11'
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
gsettings set org.gnome.desktop.interface monospace-font-name 'Fantasque Sans Mono 12'
gsettings set org.gnome.desktop.peripherals.mouse accel-profile 'flat'
gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop', 'firefox-esr.desktop', 'thunderbird.desktop', 'appimagekit-joplin.desktop', 'signal-desktop.desktop', 'discord.desktop', 'steam.desktop', 'org.gnome.Settings.desktop', 'org.gnome.Terminal.desktop']"
gsettings set org.gnome.nautilus.preferences default-folder-viewer list-view
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
gsettings set org.gnome.nautilus.list-view default-zoom-level 'small'
gsettings set org.gnome.nautilus.preferences default-folder-viewer list-view
gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop', 'firefox-esr.desktop', 'thunderbird.desktop', 'appimagekit-joplin.desktop', 'signal-desktop.desktop', 'discord.desktop', 'steam.desktop', 'org.gnome.Settings.desktop', 'org.gnome.Terminal.desktop']"
gsettings set org.gnome.shell.extensions.dash-to-dock apply-custom-theme true
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'focus-minimize-or-previews'
gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed true
gsettings set org.gnome.shell.extensions.dash-to-dock multi-monitor true
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false
gsettings set org.gnome.shell.extensions.dash-to-dock show-show-apps-button false
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'focus-minimize-or-previews'
#gsettings set org.gnome.shell.keybindings show-screenshot-ui '<Shift><Super>s'
gsettings set org.gnome.shell.keybindings show-screenshot-ui "['<Shift><Super>s']"

View File

@ -1,9 +1,11 @@
- name: add i386 arch
---
- name: add i386 architecture
become: true
ansible.builtin.shell:
cmd: dpkg --add-architecture i386
- name: update apt and install gui apps
cmd:
dpkg --add-architecture i386
- name: install steam-installer
become: true
ansible.builtin.apt:
pkg:

View File

@ -1,9 +1,9 @@
$ANSIBLE_VAULT;1.1;AES256
64333064643566613064616435343439646335313035326266623030323134333963646165323434
3538333735376364656330326138343633343434643862610a326638333030613134663562383836
35613332626238323937383630626635626363306430393163373962323832663934343163656136
6437613031626536360a626234313361346162356364366264616236396666656238633039633363
64633535373464666466663538643330663561386266393130376538386365333037343561353032
32666164356362376531303466626132653665636562623165353535653931393061366366386436
65316430646135396264346432313234666336356164636535363761623262383130353935353966
62363934363638303039
64643738326133656234383231646562323363353031613961666361663833613665316339653938
3235316431623131353734316537393431366164316364360a363936343530663430393137616234
35373766663830613138383464646338646262383066393861346163623264623637633035376463
3764626433653962390a613037626563396638376439363566653561383737613961353536656266
37386666643435353062623434613635393162346339653862656561633366666132376234643033
38336134336465656532363439376530396638336338336530303438393665326561613735643961
65306336363032336639623734373132386633623562313134653639643362363735623738316465
65663431643032626566