From 7e80ecb0335a6b5ceb09003638b5f58d95629e9a Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Wed, 20 Nov 2024 06:02:32 +0300 Subject: [PATCH] update playbook --- docker-compose.yml | 2 +- playbook.yml | 15 +++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9dbaf6f..62ab081 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,5 +3,5 @@ services: image: nillion/verifier:v1.0.1 command: verify --rpc-endpoint "###RPC###" volumes: - - ./nillion/verifier:/var/tmp + - /home/root/node:/var/tmp restart: always \ No newline at end of file diff --git a/playbook.yml b/playbook.yml index 3a6d6f9..1c38206 100644 --- a/playbook.yml +++ b/playbook.yml @@ -11,7 +11,7 @@ create: yes block: | #1724983098 - cd basic-coin-prediction-node/ ; docker compose logs -f + cd node/ ; docker compose logs -f #1724983099 docker logs worker -f marker: "" @@ -173,22 +173,13 @@ - name: Update environment variables ansible.builtin.shell: | ./update.sh ADDRESS "{{ address }}" - ./update.sh PRIVATE_KEY "{{ private_key }}" - ./update.sh PUBLIC_KEY "{{ public_key }}" + ./update.sh PRIVATE "{{ private_key }}" + ./update.sh PUBLIC "{{ public_key }}" ./update.sh RPC_URL "{{ rpc_url }}" args: chdir: "{{ ansible_env.HOME }}/node" 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 ansible.builtin.command: docker compose pull args: