mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Rolling deploys for web.
This commit is contained in:
parent
d27c8fd91a
commit
3ce2b4d837
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue