92 lines
2.8 KiB
YAML
Executable File
92 lines
2.8 KiB
YAML
Executable File
#!/usr/bin/env ansible-playbook
|
|
# vim:ft=ansible:
|
|
---
|
|
# Home desktops
|
|
- hosts: desktop
|
|
tasks:
|
|
- name: assure pi-storage-1 nfs mountpoint
|
|
file: path=/nfs/pi-storage-1.desu.ltd state=directory owner=root mode=0755
|
|
tags: [ desktop, nfs ]
|
|
- name: assure pi-storage-1 nfs mount
|
|
mount: path=/nfs/pi-storage-1.desu.ltd src=pi-storage-1.desu.ltd:/srv/nfs fstype=nfs4 opts="rsize=10248576,wsize=1048576,soft,timeo=600,retrans=2" state=mounted
|
|
tags: [ desktop, nfs ]
|
|
roles:
|
|
- role: ansible-pull
|
|
tags: [ ansible, desktop ]
|
|
- role: git
|
|
vars:
|
|
git_repos:
|
|
- repo: "{{ ansible_pull_repo }}"
|
|
dest: /etc/ansible
|
|
tags: [ ansible, git, desktop ]
|
|
- role: backup
|
|
vars:
|
|
backup_s3backup_tar_args_extra: h
|
|
backup_s3backup_list_extra:
|
|
- /home/salt/.backup/
|
|
tags: [ backup ]
|
|
- role: motd
|
|
tags: [ motd ]
|
|
- role: udev
|
|
vars:
|
|
udev_rules:
|
|
# Switch RCM stuff
|
|
- SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"
|
|
tags: [ desktop, udev ]
|
|
- role: pulseaudio
|
|
tags: [ desktop, pulse, pulseaudio ]
|
|
- role: zerotier
|
|
tags: [ desktop, zerotier ]
|
|
- hosts: lap-s76-lemp9-0.desu.ltd
|
|
roles:
|
|
- role: docker
|
|
tags: [ desktop, docker, skip-pull ]
|
|
- role: desktop
|
|
vars:
|
|
desktop_apt_keys_url_extra:
|
|
- "https://packagecloud.io/slacktechnologies/slack/gpgkey" # Slack
|
|
desktop_apt_repos_extra:
|
|
- "deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main" # Slack
|
|
- "ppa:kubuntu-ppa/backports" # Kubuntu Backports
|
|
- "ppa:kgilmer/speed-ricer" # Ricing for fun and profit
|
|
desktop_apt_packages_extra:
|
|
# DE
|
|
- bspwm
|
|
- compton
|
|
- conky-all
|
|
- dunst
|
|
- ibus
|
|
- ibus-mozc
|
|
- kubuntu-desktop
|
|
- mozc-utils-gui
|
|
- nitrogen
|
|
- pavucontrol-qt
|
|
- polybar
|
|
- qt5ct
|
|
- rofi
|
|
- xbacklight
|
|
# Applications
|
|
- redshift
|
|
- slack-desktop
|
|
- xserver-xephyr
|
|
desktop_apt_debs_extra:
|
|
- "https://zoom.us/client/latest/zoom_amd64.deb" # Zoom, proprietary shitware
|
|
- "https://downloads.raspberrypi.org/imager/imager_amd64.deb" # Pi imager
|
|
tags: [ desktop, desktop-role ]
|
|
- role: grub
|
|
tags: [ desktop, grub ]
|
|
- hosts: dsk-ryzen-0.desu.ltd
|
|
roles:
|
|
- role: docker
|
|
vars:
|
|
docker_apt_repository: "deb https://download.docker.com/linux/ubuntu focal stable"
|
|
tags: [ desktop, docker, skip-pull ]
|
|
- role: desktop
|
|
tags: [ desktop, desktop-role ]
|
|
# - role: grub
|
|
# vars:
|
|
# grub_disable_os_prober: "false"
|
|
# grub_timeout: 5
|
|
# grub_hidden_timeout: 5
|
|
# tags: [ desktop, grub ]
|