diff options
author | Stefan Joosten <stefan@sjoosten.nl> | 2016-07-31 15:14:47 +0200 |
---|---|---|
committer | Stefan Joosten <stefan@sjoosten.nl> | 2016-07-31 15:14:47 +0200 |
commit | dc078c28d02e78f6a5623af724cb969fe877b503 (patch) | |
tree | 8701238331b155c9b9e13941642b099d84bad255 /handlers | |
parent | 061e5c017344f90a2b4b73b83b78fc104e0db871 (diff) | |
download | ansible-teamspeak-dc078c28d02e78f6a5623af724cb969fe877b503.tar.gz ansible-teamspeak-dc078c28d02e78f6a5623af724cb969fe877b503.tar.xz ansible-teamspeak-dc078c28d02e78f6a5623af724cb969fe877b503.zip |
Make amount of installed versions to keep configurable
Diffstat (limited to 'handlers')
-rw-r--r-- | handlers/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers/main.yml b/handlers/main.yml index c96e3d7..f7b1d10 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -10,4 +10,4 @@ state: restarted - name: Prune older TeamSpeak 3 server versions - shell: "find {{ teamspeak.home }}/teamspeak3-server_linux_amd64-*/ -maxdepth 1 -iname 'teamspeak3-server_linux_amd64' -type d | head -n-2 | xargs rm -rf" + shell: "find {{ teamspeak.home }}/teamspeak3-server_linux_amd64-*/ -maxdepth 1 -iname 'teamspeak3-server_linux_amd64' -type d | sort | head -n-{{ teamspeak.keep }} | xargs rm -rf" |