Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Added a wrapper for the ansible site cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybatch committed Jan 25, 2017
1 parent 623cca0 commit 0d1f35a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drupal-clean-site
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

for x in $(find /var/www/html/?? -maxdepth 1 -type d -mtime +30); do
/usr/bin/ansible-playbook \
-i "/var/lib/jenkins/jobs/_ntdr-pas/workspace/inventory/intranet" \
--vault-password-file ~/.vault_pass.txt \
--limit=jenkins \
--extra-vars="local=${x} archive=/var/tmp/old-builds/$(basename $x).tgz" \
/var/lib/jenkins/jobs/_ntdr-pas/workspace/clean-drupal.yml
done

0 comments on commit 0d1f35a

Please sign in to comment.