91 lines
3.1 KiB
YAML
91 lines
3.1 KiB
YAML
- name: Reset nitro bridge demo
|
|
|
|
hosts: "{{ target_host }}"
|
|
|
|
vars_files:
|
|
- vars.yml
|
|
|
|
environment:
|
|
PATH: "{{ ansible_env.PATH }}/home/{{ansible_user}}/bin"
|
|
|
|
tasks:
|
|
- name: Stop the deployment for Alice's nitro node on L1
|
|
command: laconic-so deployment --dir l1alice-nitro-deployment stop --delete-volumes
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Stop the deployment for Charlie's nitro node on L1
|
|
command: laconic-so deployment --dir l1charlie-nitro-deployment stop --delete-volumes
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Stop the deployment for Alice's nitro node on L2
|
|
command: laconic-so deployment --dir l2alice-nitro-deployment stop --delete-volumes
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Stop the deployment for Charlie's nitro node on L2
|
|
command: laconic-so deployment --dir l2charlie-nitro-deployment stop --delete-volumes
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Stop the bridge deployment
|
|
command: laconic-so deployment --dir bridge-deployment stop --delete-volumes
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Clear the durable store for Alice's nitro node on L1
|
|
file:
|
|
path: "{{ nitro_directory }}/l1alice-nitro-deployment/data/nitro_node_data/nitro-store"
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Clear the durable store for Charlie's nitro node on L1
|
|
file:
|
|
path: "{{ nitro_directory }}/l1charlie-nitro-deployment/data/nitro_node_data/nitro-store"
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Clear the durable store for Alice's nitro node on L2
|
|
file:
|
|
path: "{{ nitro_directory }}/l2alice-nitro-deployment/data/nitro_node_data/nitro-store"
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Clear the durable store for Charlie's nitro node on L2
|
|
file:
|
|
path: "{{ nitro_directory }}/l2charlie-nitro-deployment/data/nitro_node_data/nitro-store"
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Clear the durable store for the bridge node
|
|
file:
|
|
path: "{{ nitro_directory }}/bridge-deployment/data/nitro_bridge_data/bridge-store"
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Start the bridge deployment
|
|
command: laconic-so deployment --dir bridge-deployment start
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Start the deployment for Alice's nitro node on L1
|
|
command: laconic-so deployment --dir l1alice-nitro-deployment start
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Start the deployment for Charlie's nitro node on L1
|
|
command: laconic-so deployment --dir l1charlie-nitro-deployment start
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Start the deployment for Alice's nitro node on L2
|
|
command: laconic-so deployment --dir l2alice-nitro-deployment start
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|
|
|
|
- name: Start the deployment for Charlie's nitro node on L2
|
|
command: laconic-so deployment --dir l2charlie-nitro-deployment start
|
|
args:
|
|
chdir: "{{ nitro_directory }}"
|