todo/deployment/todo-setup.yml

17 lines
482 B
YAML
Raw Permalink Normal View History

2021-11-14 18:51:00 +01:00
- hosts: server
become: false
tasks:
2021-11-14 20:03:27 +01:00
- 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
2021-11-14 20:03:27 +01:00
- name: deploy remote docker containers using compose
community.docker.docker_compose:
project_src: /home/hermansen/git/git.kjuulh.io/kjuulh/todo/src/
build: true
files:
- docker-compose.prod.yml