go-bouquins/.ansible/deploy-draft.yml

27 lines
721 B
YAML
Raw Normal View History

2019-09-13 07:42:35 +00:00
---
- hosts: docker
tasks:
- name: deploy draft
docker_container:
name: "bouquins_draft_{{ draft_name }}"
image: "reg.meutel.net/go-bouquins:{{ draft_name }}"
2019-09-28 06:58:21 +00:00
state: started
2019-09-13 07:42:35 +00:00
recreate: yes
labels:
2019-09-28 06:58:21 +00:00
traefik.enable: 'true'
traefik.port: '9000'
traefik.docker.network: 'proxybackend'
2019-09-13 07:42:35 +00:00
traefik.frontend.rule: "Host:{{ draft_name }}.bouquins.www.meutel.net"
2019-09-28 06:58:21 +00:00
traefik.frontend.entryPoints: http
2019-09-13 07:42:35 +00:00
networks:
2019-09-28 06:58:21 +00:00
- name: proxybackend
purge_networks: yes
2019-09-27 15:53:32 +00:00
volumes:
- bouquins_draft:/root/data
2019-09-28 06:58:21 +00:00
register: deploy_out
- debug:
msg: "{{ deploy_out.container }}"
2019-09-13 07:42:35 +00:00
# vim:ft=ansible: