Refactor the playbook to support multiple roles per host nicely

This commit is contained in:
Waffles
2023-01-09 02:39:02 -08:00
parent 4f73bfcf2c
commit 4d0b70bbe1
20 changed files with 186 additions and 45 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
DAYS=5
DOCKER_IMAGE=live-web-1
LOGFILE=/tmp/media_remove.log
REMOVED=$(/usr/bin/docker exec -i $DOCKER_IMAGE /opt/mastodon/bin/tootctl media remove --days $DAYS 2>&1 | egrep -e '^Removed')
echo "$(date +%I): $REMOVED" >> $LOGFILE