This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
OlderNewer