2018-11-01 14:07:54 +00:00
|
|
|
- name: "Update Application Code on Seednodes"
|
2018-11-03 22:54:47 +00:00
|
|
|
hosts: seednodes
|
2018-11-01 14:07:54 +00:00
|
|
|
user: ubuntu
|
|
|
|
gather_facts: false
|
2018-11-03 23:14:02 +00:00
|
|
|
pre_tasks:
|
|
|
|
- include_vars: variables.yml
|
2018-11-01 14:07:54 +00:00
|
|
|
tasks:
|
|
|
|
|
|
|
|
- git:
|
|
|
|
repo: "{{ git_repo }}"
|
|
|
|
version: "{{ git_version }}"
|
|
|
|
dest: ./code
|
|
|
|
clone: no
|
|
|
|
update: yes
|
|
|
|
|
2018-11-03 23:14:02 +00:00
|
|
|
- name: "Install Python Dependencies via Pipenv"
|
|
|
|
shell: "pipenv install --dev --skip-lock --pre"
|
|
|
|
args:
|
|
|
|
chdir: ./code
|
|
|
|
environment:
|
|
|
|
LC_ALL: C.UTF-8
|
|
|
|
LANG: C.UTF-8
|
|
|
|
|
2018-11-01 14:07:54 +00:00
|
|
|
- name: "Restart Ursula Service"
|
|
|
|
become: yes
|
|
|
|
become_flags: "-H -S"
|
|
|
|
systemd:
|
|
|
|
daemon_reload: yes
|
|
|
|
no_block: yes
|
|
|
|
enabled: yes
|
|
|
|
state: restarted
|
|
|
|
name: "ursula_node"
|