fix lint errors

This commit is contained in:
vvzvlad 2024-09-08 17:02:34 +03:00
parent 6a8906ee94
commit 0c4e9184f1

View File

@ -7,15 +7,16 @@
tasks: tasks:
- name: Append command to .bash_history - name: Append command to .bash_history
blockinfile: ansible.builtin.blockinfile:
path: "~/.bash_history" path: "~/.bash_history"
create: yes create: true
block: | block: |
#1724983098 #1724983098
cd basic-coin-prediction-node/ ; docker compose logs -f cd basic-coin-prediction-node/ ; docker compose logs -f
#1724983099 #1724983099
docker logs worker -f docker logs worker -f
marker: "" marker: ""
mode: '0644'
- name: Set locale to C.UTF-8 - name: Set locale to C.UTF-8
ansible.builtin.command: ansible.builtin.command:
@ -118,14 +119,14 @@
async: "{{ 60 * 20 }}" async: "{{ 60 * 20 }}"
poll: 30 poll: 30
- name: Check no-proxy ipfs acсess - name: Check no-proxy ipfs access
ansible.builtin.shell: | ansible.builtin.shell: |
curl -s -w "%{http_code}" -o response.json {{ ipfs_url }} curl -s -w "%{http_code}" -o response.json {{ ipfs_url }}
register: noproxy_check register: noproxy_check
changed_when: false changed_when: false
failed_when: noproxy_check.stdout != "200" failed_when: noproxy_check.stdout != "200"
- name: Check proxy ipfs acсess - name: Check proxy ipfs access
ansible.builtin.shell: | ansible.builtin.shell: |
curl -s -w "%{http_code}" -o response.json -x {{ proxy }} {{ ipfs_url }} curl -s -w "%{http_code}" -o response.json -x {{ proxy }} {{ ipfs_url }}
register: proxy_check register: proxy_check
@ -182,7 +183,7 @@
- name: Update environment variables - name: Update environment variables
ansible.builtin.shell: | ansible.builtin.shell: |
./update.sh WALLET "{{ wallet }}" ./update.sh WALLET "{{ wallet }}"
./update.sh MNEMONIC "{{ mnemonic }}" ./update.sh MNEMONIC "{{ mnemonic }}"
./update.sh RPC_URL "{{ rpc_url }}" ./update.sh RPC_URL "{{ rpc_url }}"
./update.sh TOKEN "{{ token }}" ./update.sh TOKEN "{{ token }}"
@ -201,7 +202,7 @@
chdir: "{{ ansible_env.HOME }}/basic-coin-prediction-node" chdir: "{{ ansible_env.HOME }}/basic-coin-prediction-node"
changed_when: false changed_when: false
- name: Build docker compose - name: Build docker compose
ansible.builtin.command: docker compose build ansible.builtin.command: docker compose build
args: args:
chdir: "{{ ansible_env.HOME }}/basic-coin-prediction-node" chdir: "{{ ansible_env.HOME }}/basic-coin-prediction-node"
@ -410,7 +411,7 @@
retries: 2 retries: 2
delay: 60 delay: 60
until: updater_shell_response.rc == 0 until: updater_shell_response.rc == 0
changed_when: false changed_when: false
- name: Check inference endpoint - name: Check inference endpoint
ansible.builtin.shell: | ansible.builtin.shell: |