todo/deployment/todo-setup.yml

17 lines
506 B
YAML
Raw Normal View History

2021-11-14 18:51:00 +01:00
- hosts: server
become: false
tasks:
- name: update from git
ansible.builtin.git:
repo: git@git.front.kjuulh.io:kjuulh/todo.git
dest: /home/hermansen/git/git.kjuulh.io/kjuulh/todo
single_branch: yes
version: production
2021-11-14 18:56:17 +01:00
- name: deploy remote docker containers using compose
community.docker.docker_compose:
2021-11-14 18:57:37 +01:00
project_src: /home/hermansen/git/git.kjuulh.io/kjuulh/todo/src/
2021-11-14 19:04:31 +01:00
build: true
2021-11-14 18:56:17 +01:00
files:
- docker-compose.prod.yml