Skip to content

Instantly share code, notes, and snippets.

@metachris
Created March 6, 2018 20:54
Show Gist options
  • Save metachris/629ae4870d60ca660a22c182f33afc0a to your computer and use it in GitHub Desktop.
Save metachris/629ae4870d60ca660a22c182f33afc0a to your computer and use it in GitHub Desktop.
Ansible playbook to update neo-python api-server: https://github.com/CityOfZion/neo-python/blob/development/api-server.py
---
- hosts: all
gather_facts: false
become: yes
tasks:
- name: Pull sources from the repository
become_user: node
shell: git pull
args:
chdir: /server/neo-python/
- name: Update dependencies
become_user: node
shell: /server/neo-python/venv/bin/pip install -e .
args:
chdir: /server/neo-python/
- name: restart pyapi service
service: name=pyapi state=restarted
become_user: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment