ansible/playbooks/desktop.yml

59 lines
1.8 KiB
YAML
Executable File

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
# Home desktops
- hosts: desktop
post_tasks:
- name: confirm liblzo2 dllmap
lineinfile:
path: /etc/mono/config
insertafter: "<configuration>"
line: '<dllmap dll="lzo2.dll" target="liblzo2.so.2" os="!windows"/>'
tags: [ desktop, mono ]
- name: give python3 cap_sys_ptrace
capabilities:
path: /usr/bin/python3.8
# Required for Randovania to access Dolphin memory
capability: cap_sys_ptrace=eip
tags: [ desktop, python, cap ]
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: backup
vars:
backup_s3backup_tar_args_extra: h
backup_s3backup_list_extra:
- /home/salt/.backup/
tags: [ backup ]
- role: motd
tags: [ motd ]
- role: desktop
tags: [ desktop ]
- 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: grub
tags: [ desktop, grub ]
- hosts: dsk-ryzen-0.desu.ltd
roles:
- role: grub
vars:
grub_disable_os_prober: "false"
grub_timeout: 5
grub_hidden_timeout: 5
tags: [ desktop, grub ]