-
Notifications
You must be signed in to change notification settings - Fork 4
/
deploy.yml
29 lines (23 loc) · 877 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Inspired from https://github.com/5car1z/ansible-debian-provisioning
- name: "Update and (Re)Deploy Services"
hosts: all
gather_facts: yes
become_user: "{{ my_admin_user }}"
vars_files:
- vars/vars.yml
vars:
ansible_ssh_user: "{{ my_admin_user }}"
pre_tasks:
- name: "Clone or Update Git Repo"
git: "repo={{ my_github_repo }} dest={{ my_git_home }} version=main clone=yes force=yes accept_hostkey=True"
tags: always
tasks:
- name: "traefik"
shell: "cd {{ services_home }}/traefik && ./start.sh && docker ps"
tags: traefik
- name: "pygeoapi_test"
shell: "cd {{ services_home }}/pygeoapi_test && ./stop.sh && docker pull geopython/pygeoapi:latest && ./start.sh && docker ps"
tags: pygeoapi_test
- name: "docs"
shell: "cd {{ services_home }}/docs && ./deploy.sh && docker ps"
tags: docs