summaryrefslogtreecommitdiffstats
path: root/roles/git/make_checkout_seed
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2016-08-11 15:55:21 +0000
committerKevin Fenzi <kevin@scrye.com>2016-08-11 15:55:21 +0000
commit83b4a6c864b94eb0d50a50148ee1edb75adae739 (patch)
tree12d0762df2a0cc745d3b4d7cc5d43f4cce12bacd /roles/git/make_checkout_seed
parent71845a2841b417a4f160a54a634f84e5613421d8 (diff)
downloadansible-83b4a6c864b94eb0d50a50148ee1edb75adae739.tar.gz
ansible-83b4a6c864b94eb0d50a50148ee1edb75adae739.tar.xz
ansible-83b4a6c864b94eb0d50a50148ee1edb75adae739.zip
See if we can really disable this on staging (which has a ro lookaside mount from prod now)
Diffstat (limited to 'roles/git/make_checkout_seed')
-rw-r--r--roles/git/make_checkout_seed/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/git/make_checkout_seed/tasks/main.yml b/roles/git/make_checkout_seed/tasks/main.yml
index daf2f7f95..8c72a88f0 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'