Skip to content

Instantly share code, notes, and snippets.

@sudo-battlekafer
sudo-battlekafer / docker-setup.sh
Last active June 30, 2022 21:36
Docker install/configure for Ubuntu with NFS or SMB storage
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
#prep for media mount
apt-get update
apt-get install -y nfs-common cifs-utils
@jlengelbrecht
jlengelbrecht / gist:69cdbf91237c62ad9d93883e84622b49
Created December 5, 2023 04:54
ansible automation playbook with discord notifications
---
- hosts: all
gather_facts: true
become: true
become_user: root
serial: 1 # Ensures the playbook runs on one server at a time
vars:
update_results_file: "/home/semaphore/automation-updates.txt"
discord_webhook_url: "my-webhook"
ansible_command_timeout: 900