26 lines
577 B
YAML
26 lines
577 B
YAML
|
---
|
||
|
- hosts: localhost
|
||
|
vars_files:
|
||
|
- conf/secrets.yaml
|
||
|
vars:
|
||
|
infrastructure: "local"
|
||
|
dry: false
|
||
|
tasks:
|
||
|
- name: Patch PEP config
|
||
|
template:
|
||
|
src: "conf/pep/config.js.j2"
|
||
|
dest: "conf/pep/config.js"
|
||
|
|
||
|
- name: Patch service auth config
|
||
|
template:
|
||
|
src: "conf/service/auth.json.j2"
|
||
|
dest: "conf/service/auth.json"
|
||
|
|
||
|
- name: Start swarm
|
||
|
docker_stack:
|
||
|
name: 'cdn-{{ infrastructure }}'
|
||
|
state: present
|
||
|
compose:
|
||
|
- "swarm.yaml"
|
||
|
when: dry is not defined or not dry|bool
|