19 lines
531 B
YAML
19 lines
531 B
YAML
- name: Create Docker config
|
|
docker_config:
|
|
name: forgejo_config
|
|
data: "{{ lookup('template', '{{ role_path }}/app.ini.j2') }}"
|
|
use_ssh_client: true
|
|
rolling_versions: true
|
|
environment:
|
|
DOCKER_HOST: ssh://root@maestro.dmz
|
|
delegate_to: localhost
|
|
register: config
|
|
|
|
- name: Deploy Docker stack
|
|
docker_stack:
|
|
name: forgejo
|
|
compose:
|
|
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
|
|
environment:
|
|
DOCKER_HOST: ssh://root@maestro.dmz
|
|
delegate_to: localhost
|