2021-01-20 17:49:37 -05:00
|
|
|
---
|
2021-02-24 20:02:37 -05:00
|
|
|
- hosts: app
|
2021-01-20 17:49:37 -05:00
|
|
|
gather_facts: false
|
2021-03-24 21:09:26 -04:00
|
|
|
# serial: "50%"
|
2021-01-20 17:49:37 -05:00
|
|
|
vars_files:
|
|
|
|
- env_vars/base.yml
|
|
|
|
- env_vars/dev.yml
|
|
|
|
|
|
|
|
tasks:
|
2021-03-24 21:09:26 -04:00
|
|
|
# - name: Leave consul
|
|
|
|
# command: consul leave
|
|
|
|
# ignore_errors: yes
|
2021-03-11 18:20:22 -05:00
|
|
|
|
2021-02-18 14:40:11 -05:00
|
|
|
- name: Pull newsblur_web github
|
|
|
|
git:
|
|
|
|
repo: https://github.com/samuelclay/NewsBlur.git
|
|
|
|
dest: /srv/newsblur/
|
|
|
|
version: dashboard3
|
2021-02-19 19:58:11 -05:00
|
|
|
register: pulled
|
|
|
|
|
|
|
|
- name: Reload gunicorn
|
|
|
|
become: yes
|
2021-03-26 18:44:56 -04:00
|
|
|
block:
|
|
|
|
- name: Find gunicorn master process
|
|
|
|
shell: "ps -C gunicorn fch -o pid | head -n 1"
|
|
|
|
register: psaux
|
|
|
|
- name: Reload gunicorn
|
|
|
|
command: "kill -HUP {{ psaux.stdout }}"
|
2021-03-10 16:54:18 -05:00
|
|
|
# when: pulled.changed
|
2021-03-11 18:20:22 -05:00
|
|
|
|
|
|
|
- name: Start Consul
|
|
|
|
become: yes
|
|
|
|
service:
|
|
|
|
name: consul
|
|
|
|
state: started
|
|
|
|
enabled: true
|