Created
March 6, 2018 20:54
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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