ansible/hg-web: synchronize templates earlier; r=sheehan
authorGregory Szorc <gps@mozilla.com>
Mon, 05 Nov 2018 20:29:57 +0000
changeset 6703 5545fedd9bd8f760ac67b9d97b18c88ef4e4da5c
parent 6702 1bde25a5751ba97e560c1bcdefcefe558e3c18c9
child 6704 ff5e66697be9bc15ed0b2afe673454be22c24a1d
push id3314
push usergszorc@mozilla.com
push dateMon, 05 Nov 2018 20:41:14 +0000
treeherderversion-control-tools@ff5e66697be9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssheehan
ansible/hg-web: synchronize templates earlier; r=sheehan We will need to do this before hgrc modification once a subsequent commit lands. Differential Revision: https://phabricator.services.mozilla.com/D10785
ansible/roles/hg-web/tasks/main.yml
--- a/ansible/roles/hg-web/tasks/main.yml
+++ b/ansible/roles/hg-web/tasks/main.yml
@@ -258,16 +258,19 @@
         mode=0644
   with_items:
     - { venv: venv_replication, path: hghooks, pth: mozhghooks }
     - { venv: venv_tools, path: hghooks, pth: mozhghooks }
     - { venv: venv_replication, path: pylib/mozhg, pth: mozhg }
     - { venv: venv_tools, path: pylib/mozhg, pth: mozhg }
     - { venv: venv_replication, path: hgserver/hgmolib, pth: hgmolib }
 
+- name: synchronize hg templates
+  command: /usr/bin/rsync -a --delete-after /var/hg/version-control-tools/hgtemplates/ /repo/hg/hg_templates/
+
 # Settings from this file are inherited by every hg command run on the
 # system.
 - name: install global hgrc
   template: src=hgrc.j2
             dest=/etc/mercurial/hgrc
             mode=0644
             owner=root
             group=root
@@ -496,19 +499,16 @@
     - hg-bind-mount.service
 
 - name: main bind mount unit is enabled (server only)
   service: name=hg-bind-mount.service
            enabled=yes
            state=started
   when: vct_dir.stat.exists == False
 
-- name: synchronize hg templates
-  command: /usr/bin/rsync -a --delete-after /var/hg/version-control-tools/hgtemplates/ /repo/hg/hg_templates/
-
 - name: advertise current v-c-t changeset in hgweb
   replace: dest=/repo/hg/hg_templates/gitweb_mozilla/footer.tmpl
            regexp={{ item.search }}
            replace={{ item.replace }}
   with_items:
     - { search: VCTNODE, replace: "{{ vct_node | mandatory }}" }
     - { search: DEPLOYDATE, replace: "{{ ansible_date_time.iso8601 }}" }