Refactor the playbook to support multiple roles per host nicely
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user