17 lines
482 B
YAML
17 lines
482 B
YAML
- 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
|
|
|
|
- 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
|