mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
30 lines
625 B
YAML
30 lines
625 B
YAML
---
|
|
- 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
|
|
dest: /srv/newsblur/
|
|
version: dashboard3
|
|
register: pulled
|
|
|
|
- name: Reload gunicorn
|
|
become: yes
|
|
command: "docker kill --signal=HUP newsblur_web"
|
|
# when: pulled.changed
|
|
|
|
- name: Start Consul
|
|
become: yes
|
|
service:
|
|
name: consul
|
|
state: started
|
|
enabled: true
|