NewsBlur/ansible/deploy_app.yml

31 lines
625 B
YAML
Raw Normal View History

---
- hosts: app
gather_facts: false
2021-03-11 18:20:22 -05:00
serial: "50%"
vars_files:
- env_vars/base.yml
- env_vars/dev.yml
tasks:
2021-03-11 18:20:22 -05:00
- name: Leave consul
command: consul leave
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
command: "docker kill --signal=HUP newsblur_web"
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