NewsBlur/ansible/deploy_app.yml

37 lines
826 B
YAML
Raw Normal View History

---
- hosts: app
gather_facts: false
# serial: "50%"
vars_files:
- env_vars/base.yml
- env_vars/dev.yml
tasks:
# - 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
register: pulled
- name: Reload gunicorn
become: yes
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