diff --git a/roles/git/make_checkout_seed/tasks/main.yml b/roles/git/make_checkout_seed/tasks/main.yml index daf2f7f955..8c72a88f01 100644 --- a/roles/git/make_checkout_seed/tasks/main.yml +++ b/roles/git/make_checkout_seed/tasks/main.yml @@ -3,9 +3,11 @@ - name: create the destination directory file: dest=/srv/git_seed owner=root group=root mode=0755 state=directory + when: env != 'staging' - name: install the production version of the script and schedule its execution copy: src=make-git-checkout-seed.sh dest=/usr/local/bin/make-git-checkout-seed.sh mode=0755 + when: env != 'staging' - name: install cron job. cron: > @@ -13,3 +15,4 @@ minute=0 hour=2 user=root job='/usr/local/bin/lock-wrapper make-git-checkout-seed "/usr/local/bin/make-git-checkout-seed.sh | /usr/local/bin/nag-once make-git-checkout-seed 1d 2>&1"' + when: env != 'staging'