Browse Source

Simplify source fetch

Matthias Vogelgesang 10 years ago
parent
commit
d06715c350
1 changed files with 12 additions and 16 deletions
  1. 12 16
      roles/compute-staging/tasks/main.yml

+ 12 - 16
roles/compute-staging/tasks/main.yml

@@ -1,24 +1,20 @@
 ---
-- name: fetch ufo-core source
-  git: repo=https://github.com/ufo-kit/ufo-core.git
-       dest=/opt/ufo-core
+- name: fetch ufo base sources
+  git: repo=https://github.com/ufo-kit/{{ item }}.git
+       dest=/opt/{{ item }}
   notify:
     - configure ufo-core
-
-- name: fetch ufo-filters source
-  git: repo=https://github.com/ufo-kit/ufo-filters.git
-       dest=/opt/ufo-filters
-  notify:
     - configure ufo-filters
+  with_items:
+    - ufo-core
+    - ufo-filters
 
-- name: fetch ufo-scripts source
-  git: repo=https://github.com/ufo-kit/ufo-scripts.git
-       dest=/opt/ufo-scripts
+- name: fetch auxiliary ufo sources
+  git: repo=https://github.com/ufo-kit/{{ item }}.git
+       dest=/opt/{{ item }}
   notify:
     - install ufo-scripts
-
-- name: fetch ufo-python-tools source
-  git: repo=https://github.com/ufo-kit/ufo-python-tools.git
-       dest=/opt/ufo-python-tools
-  notify:
     - install ufo-python-tools
+  with_items:
+    - ufo-scripts
+    - ufo-python-tools