1. James Mills
  2. vivo-playbooks

Commits

James  committed a6a0730

Modified vivo play to only rebuild vivo if the underlying repository (mercurial) has changed

  • Participants
  • Parent commits 23288ff
  • Branches default

Comments (0)

Files changed (1)

File playbooks/vivo/tasks/setup.yml

View file
  • Ignore whitespace
 ---
-- name: Vivo | Clone Vivo Repsitory
+- name: Vivo | Clone/Update Vivo Repsitory
   action: mercurial owner=root repo=http://172.16.0.1:8000/vivo_gu_mods dest=/usr/src/vivo 
+  register: repo
 
 - name: Vivo | Download Vitro-Core
   action: get_url url="http://downloads.sourceforge.net/vivo/vitro-rel-1.4.1.tar.gz" dest=/usr/src
 - name: Vivo | Configure Vivo
   action: template src=vivo/templates/deploy.properties.j2 dest=/usr/src/vivo/deploy.properties
 
-- name: Vivo | Build Vivo
+- name: Vivo | Build Vivo (only if the repo changed)
   action: command /usr/bin/ant all chdir=/usr/src/vivo
+  only_if: ${repo.changed}
   notify:
   - restart tomcat6