update playbook
This commit is contained in:
parent
ae4c97f797
commit
7e80ecb033
@ -3,5 +3,5 @@ services:
|
|||||||
image: nillion/verifier:v1.0.1
|
image: nillion/verifier:v1.0.1
|
||||||
command: verify --rpc-endpoint "###RPC###"
|
command: verify --rpc-endpoint "###RPC###"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nillion/verifier:/var/tmp
|
- /home/root/node:/var/tmp
|
||||||
restart: always
|
restart: always
|
15
playbook.yml
15
playbook.yml
@ -11,7 +11,7 @@
|
|||||||
create: yes
|
create: yes
|
||||||
block: |
|
block: |
|
||||||
#1724983098
|
#1724983098
|
||||||
cd basic-coin-prediction-node/ ; docker compose logs -f
|
cd node/ ; docker compose logs -f
|
||||||
#1724983099
|
#1724983099
|
||||||
docker logs worker -f
|
docker logs worker -f
|
||||||
marker: ""
|
marker: ""
|
||||||
@ -173,22 +173,13 @@
|
|||||||
- name: Update environment variables
|
- name: Update environment variables
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
./update.sh ADDRESS "{{ address }}"
|
./update.sh ADDRESS "{{ address }}"
|
||||||
./update.sh PRIVATE_KEY "{{ private_key }}"
|
./update.sh PRIVATE "{{ private_key }}"
|
||||||
./update.sh PUBLIC_KEY "{{ public_key }}"
|
./update.sh PUBLIC "{{ public_key }}"
|
||||||
./update.sh RPC_URL "{{ rpc_url }}"
|
./update.sh RPC_URL "{{ rpc_url }}"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ ansible_env.HOME }}/node"
|
chdir: "{{ ansible_env.HOME }}/node"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Init config
|
|
||||||
ansible.builtin.shell: |
|
|
||||||
mkdir -p ~/.nillion
|
|
||||||
mkdir -p ~/.nillion/verifier
|
|
||||||
cp {{ ansible_env.HOME }}/node/credentials.json ~/.nillion/verifier/
|
|
||||||
args:
|
|
||||||
chdir: "{{ ansible_env.HOME }}/node"
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: Download dockers images
|
- name: Download dockers images
|
||||||
ansible.builtin.command: docker compose pull
|
ansible.builtin.command: docker compose pull
|
||||||
args:
|
args:
|
||||||
|
Loading…
Reference in New Issue
Block a user