remove unless stopped

This commit is contained in:
vvzvlad 2024-09-23 02:42:05 +03:00
parent 7eab098a99
commit e85f0b987e

View File

@ -163,14 +163,12 @@
ansible.builtin.shell: bash update.sh {{ wallet }} {{ private_key }} {{ rpc_url }}
args:
chdir: "{{ ansible_env.HOME }}/ritual"
- name: Remove old Forge and Infernet SDK
ansible.builtin.shell: |
rm -rf {{ ansible_env.HOME }}/ritual/projects/hello-world/contracts/lib/forge-std
rm -rf {{ ansible_env.HOME }}/ritual/projects/hello-world/contracts/lib/infernet-sdk
- name: Install Forge and Infernet SDK
ansible.builtin.shell: |
rm -rf {{ ansible_env.HOME }}/ritual/projects/hello-world/contracts/lib/forge-std
rm -rf {{ ansible_env.HOME }}/ritual/projects/hello-world/contracts/lib/infernet-sdk
cd {{ ansible_env.HOME }}/foundry && source {{ ansible_env.HOME }}/.bashrc && foundryup
cd {{ ansible_env.HOME }}/ritual/projects/hello-world/contracts
forge install --no-commit foundry-rs/forge-std
@ -206,13 +204,13 @@
delay: 60
failed_when: '"ONCHAIN EXECUTION COMPLETE & SUCCESSFUL" not in contract_call_output.stdout'
- name: Set Docker containers to restart unless stopped
ansible.builtin.shell: |
docker update --restart unless-stopped hello-world
docker update --restart unless-stopped infernet-node
docker update --restart unless-stopped deploy-redis-1
docker update --restart unless-stopped infernet-anvil
docker update --restart unless-stopped deploy-fluentbit-1
# - name: Set Docker containers to restart unless stopped
# ansible.builtin.shell: |
# docker update --restart unless-stopped hello-world
# docker update --restart unless-stopped infernet-node
# docker update --restart unless-stopped deploy-redis-1
# docker update --restart unless-stopped infernet-anvil
# docker update --restart unless-stopped deploy-fluentbit-1
- name: Remove docker login credentials
ansible.builtin.shell: rm -rf /root/.docker/config.json