Rolling deploys for web.

This commit is contained in:
Samuel Clay 2021-03-11 18:20:22 -05:00
parent d27c8fd91a
commit 3ce2b4d837

View file

@ -1,11 +1,15 @@
---
- hosts: app
gather_facts: false
serial: "50%"
vars_files:
- env_vars/base.yml
- env_vars/dev.yml
tasks:
- name: Leave consul
command: consul leave
- name: Pull newsblur_web github
git:
repo: https://github.com/samuelclay/NewsBlur.git
@ -17,3 +21,10 @@
become: yes
command: "docker kill --signal=HUP newsblur_web"
# when: pulled.changed
- name: Start Consul
become: yes
service:
name: consul
state: started
enabled: true