Compare commits
2 Commits
94e56ef57c
...
ac850f8966
Author | SHA1 | Date |
---|---|---|
Ethan Paul | ac850f8966 | |
Ethan Paul | ed8a2f822a |
|
@ -1,14 +1,35 @@
|
||||||
---
|
---
|
||||||
- name: Clone repositories
|
- name: Download source
|
||||||
when: item.value.build is defined
|
block:
|
||||||
git:
|
- name: Clone repositories
|
||||||
repo: "{{ item.value.build.repository }}"
|
when: item.value.build is defined
|
||||||
dest: /tmp/{{ item.key }}
|
git:
|
||||||
version: "{{ item.value.build.version }}"
|
repo: "{{ item.value.build.repository }}"
|
||||||
accept_hostkey: true
|
dest: /tmp/{{ item.key }}
|
||||||
loop: "{{ omni_compose_apps | dict2items }}"
|
version: "{{ item.value.build.version }}"
|
||||||
loop_control:
|
accept_hostkey: true
|
||||||
label: "{{ item.key }}"
|
loop: "{{ omni_compose_apps | dict2items }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.key }}"
|
||||||
|
rescue:
|
||||||
|
- name: Remove existing repository downloads
|
||||||
|
file:
|
||||||
|
path: /tmp/{{ item.key }}
|
||||||
|
state: absent
|
||||||
|
loop: "{{ omni_compose_apps | dict2items }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.key }}"
|
||||||
|
|
||||||
|
- name: Clone repositories
|
||||||
|
when: item.value.build is defined
|
||||||
|
git:
|
||||||
|
repo: "{{ item.value.build.repository }}"
|
||||||
|
dest: /tmp/{{ item.key }}
|
||||||
|
version: "{{ item.value.build.version }}"
|
||||||
|
accept_hostkey: true
|
||||||
|
loop: "{{ omni_compose_apps | dict2items }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.key }}"
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
when: item.value.build is defined
|
when: item.value.build is defined
|
||||||
|
|
|
@ -93,7 +93,7 @@ omni_compose_apps:
|
||||||
scipio:
|
scipio:
|
||||||
build:
|
build:
|
||||||
repository: git@github.com:tjyork/Scipio.git
|
repository: git@github.com:tjyork/Scipio.git
|
||||||
version: 1.1.1
|
version: 1.1.2
|
||||||
datastore: /appdata/scipio
|
datastore: /appdata/scipio
|
||||||
account:
|
account:
|
||||||
name: mech_scipio
|
name: mech_scipio
|
||||||
|
@ -106,6 +106,6 @@ omni_compose_apps:
|
||||||
networks:
|
networks:
|
||||||
main: 192.168.106.0/24
|
main: 192.168.106.0/24
|
||||||
versions:
|
versions:
|
||||||
default: 1.1.1
|
default: 1.1.2
|
||||||
database: "10"
|
database: "10"
|
||||||
cache: "6.2"
|
cache: "6.2"
|
||||||
|
|
Reference in New Issue