NewsBlur/ansible/deploy_app.yml
2021-03-11 18:20:22 -05:00

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