2021-02-24 20:02:37 -05:00
|
|
|
---
|
2021-04-13 12:04:48 -04:00
|
|
|
- name: DEPLOY -> node
|
|
|
|
hosts: node,staging
|
2021-02-24 20:02:37 -05:00
|
|
|
gather_facts: false
|
|
|
|
vars_files:
|
2021-04-13 11:59:37 -04:00
|
|
|
- ../env_vars/base.yml
|
2021-02-24 20:02:37 -05:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Pull newsblur_web github
|
|
|
|
git:
|
|
|
|
repo: https://github.com/samuelclay/NewsBlur.git
|
|
|
|
dest: /srv/newsblur/
|
|
|
|
version: dashboard3
|
|
|
|
register: pulled
|
|
|
|
|
2021-04-02 18:47:36 -04:00
|
|
|
- name: Restart node
|
2021-02-24 20:02:37 -05:00
|
|
|
become: yes
|
2021-03-17 10:05:26 -04:00
|
|
|
command: "docker restart {{ item.container_name }}"
|
2021-02-24 20:02:37 -05:00
|
|
|
when: item.target_host in inventory_hostname
|
|
|
|
with_items:
|
2021-03-17 09:31:19 -04:00
|
|
|
- container_name: node
|
|
|
|
target_host: node-socket
|
|
|
|
- container_name: node
|
|
|
|
target_host: node-page
|
|
|
|
- container_name: node
|
|
|
|
target_host: node-text
|
|
|
|
- container_name: node
|
|
|
|
target_host: node-favicons
|
2021-03-17 10:05:26 -04:00
|
|
|
- container_name: node
|
|
|
|
target_host: staging-web
|
2021-02-24 20:02:37 -05:00
|
|
|
|