update share directories
This commit is contained in:
parent
b944e990d3
commit
cb370e7ff4
@ -23,6 +23,7 @@
|
||||
#- torbrowser-launcher
|
||||
#- ttf-mscore-fonts-installer
|
||||
- virt-manager
|
||||
- wireshark
|
||||
#gnome
|
||||
- gnome-core
|
||||
- gnome-tweaks
|
||||
@ -46,8 +47,10 @@
|
||||
- lm-sensors
|
||||
- neofetch
|
||||
- neovim
|
||||
- nfs-common
|
||||
- nmap
|
||||
- mediainfo
|
||||
- pip
|
||||
- qrencode
|
||||
- smartmontools
|
||||
- telnet
|
||||
@ -61,7 +64,6 @@
|
||||
ansible.builtin.get_url:
|
||||
url: https://updates.signal.org/desktop/apt/keys.asc
|
||||
dest: /etc/apt/keyrings/signal.asc
|
||||
|
||||
- name: install signal key
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/signal.asc] https://updates.signal.org/desktop/apt xenial main"
|
||||
@ -80,5 +82,52 @@
|
||||
- name: install discord.deb
|
||||
ansible.builtin.apt:
|
||||
deb: /tmp/discord.deb
|
||||
- name: install bitwarden
|
||||
block:
|
||||
- name: create ~/admin/apps
|
||||
ansible.builtin.file:
|
||||
path: /home/admin/apps
|
||||
state: directory
|
||||
- name: download bitwarden appimage
|
||||
ansible.builtin.get_url:
|
||||
url: https://vault.bitwarden.com/download/?app=desktop&platform=linux
|
||||
dest: /home/admin/apps/bitwarden.AppImage
|
||||
- name: permissions
|
||||
ansible.builtin.file:
|
||||
path: /home/admin/apps/bitwarden.AppImage
|
||||
owner: admin
|
||||
group: admin
|
||||
mode: '0766'
|
||||
|
||||
- name: enable workspace-indicator extension
|
||||
ansible.builtin.shell:
|
||||
cmd: gnome-extensions enable workspace-indicator@gnome-shell-extensions.gcampax.github.com
|
||||
- name: create mount directories
|
||||
block:
|
||||
- name: create /mnt/share
|
||||
ansible.builtin.file:
|
||||
path: /mnt/share
|
||||
state: directory
|
||||
- name: create /mnt/media
|
||||
ansible.builtin.file:
|
||||
path: /mnt/media
|
||||
state: directory
|
||||
- name: mount data nfs
|
||||
ansible.posix.mount:
|
||||
path: /mnt/share
|
||||
src: //192.168.0.20/data
|
||||
fstype: cifs
|
||||
opts: defaults,auto,rw,password=
|
||||
state: mounted
|
||||
- name: mount media nfs
|
||||
ansible.posix.mount:
|
||||
path: /mnt/media
|
||||
src: //192.168.0.20/media
|
||||
fstype: cifs
|
||||
opts: defaults,auto,rw,password=
|
||||
state: mounted
|
||||
- name: dark mode gnome
|
||||
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 && gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
|
||||
#- name: reboot
|
||||
#ansible.builtin.reboot:
|
||||
|
@ -3,20 +3,6 @@
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: mount data nfs
|
||||
ansible.posix.mount:
|
||||
path: /mnt/share
|
||||
src: 192.168.0.20:/mnt/pool/data
|
||||
fstype: nfs
|
||||
opts: defaults,auto,rw
|
||||
state: present
|
||||
- name: mount media nfs
|
||||
ansible.posix.mount:
|
||||
path: /mnt/media
|
||||
src: 192.168.0.20:/mnt/pool/media
|
||||
fstype: nfs
|
||||
opts: defaults,auto,rw
|
||||
state: present
|
||||
- name: Update apt and install gui apps
|
||||
apt:
|
||||
pkg:
|
||||
@ -27,9 +13,34 @@
|
||||
- docker
|
||||
- docker-compose
|
||||
- neovim
|
||||
- nfs-common
|
||||
- fzf
|
||||
state: latest
|
||||
update_cache: true
|
||||
- name: create mount directories
|
||||
block:
|
||||
- name: create /mnt/share
|
||||
ansible.builtin.file:
|
||||
path: /mnt/share
|
||||
state: directory
|
||||
- name: create /mnt/media
|
||||
ansible.builtin.file:
|
||||
path: /mnt/media
|
||||
state: directory
|
||||
- name: mount data nfs
|
||||
ansible.posix.mount:
|
||||
path: /mnt/share
|
||||
src: 192.168.0.20:/mnt/pool/data
|
||||
fstype: nfs4
|
||||
opts: defaults,auto,rw
|
||||
state: mounted
|
||||
- name: mount media nfs
|
||||
ansible.posix.mount:
|
||||
path: /mnt/media
|
||||
src: 192.168.0.20:/mnt/pool/media
|
||||
fstype: nfs4
|
||||
opts: defaults,auto,rw
|
||||
state: mounted
|
||||
- name: setup backup
|
||||
ansible.builtin.cron:
|
||||
minute: "0"
|
||||
|
12
macos.yml
12
macos.yml
@ -32,16 +32,26 @@
|
||||
- via
|
||||
brew_packages:
|
||||
- ansible
|
||||
- cataclysm
|
||||
- cmatrix
|
||||
- dockutil
|
||||
- exiftool
|
||||
- ffmpeg
|
||||
- fzf
|
||||
- git
|
||||
- gnupg
|
||||
- htop
|
||||
- irssi
|
||||
- iperf3
|
||||
- nethack
|
||||
- neofetch
|
||||
- neovim
|
||||
- newsboat
|
||||
- nmap
|
||||
- telnet
|
||||
- wget
|
||||
- tmux
|
||||
- yt-dlp
|
||||
- smartmontools
|
||||
# python_modules:
|
||||
# - configparser
|
||||
# - pylint
|
||||
|
Loading…
x
Reference in New Issue
Block a user