forked from TyphooN-/gridcoin-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upgrade.yml
26 lines (22 loc) · 827 Bytes
/
upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- name: Upgrade Gridcoin Wallet (Windows)
hosts: gridcoin-windows
vars_files:
- vars/winrm.yml
- vars/vars.yml
- vars/wincreds.yml
tasks:
- name: 'Upgrade Wallet'
raw: '{{ grcdir }}\GRCRestarter.exe upgrade'
- name: 'Start Gridcoin Prod.'
raw: '{{ ansibledir }}\PsExec.exe -i -d -u "{{ winuser }}" -p "{{ winpass }}" \\{{ item }} "{{ grcdir }}\gridcoinresearch.exe"'
with_items:
- "{{ hostname }}"
ignore_errors: yes
- name: 'Create testnet.bat'
win_template: src='templates/testnet.j2' dest='{{ grcdir }}\testnet.bat'
- name: 'Start Gridcoin testnet.'
raw: '{{ ansibledir }}\PsExec.exe -i -d -u "{{ winuser }}" -p "{{ winpass }}" \\{{ item }} "{{ grcdir }}\testnet.bat"'
with_items:
- "{{ hostname }}"
ignore_errors: yes