update v9
This commit is contained in:
47
playbook.yml
47
playbook.yml
@ -118,6 +118,40 @@
|
||||
name: web3
|
||||
extra_args: --break-system-packages
|
||||
|
||||
- name: Install grpcbalancer dependencies
|
||||
ansible.builtin.pip:
|
||||
name:
|
||||
- grist-api
|
||||
- flask
|
||||
- requests
|
||||
- waitress
|
||||
extra_args: --break-system-packages --no-dependencies
|
||||
|
||||
- name: Create grpcbalancer directory
|
||||
ansible.builtin.file:
|
||||
path: /opt/grpc-balancer
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy grpcbalancer files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ ansible_env.HOME }}/ritual/grpcbalancer/grpcbalancer.py"
|
||||
dest: /usr/local/bin/grpc-balancer
|
||||
mode: '0755'
|
||||
|
||||
- name: Install grpcbalancer service
|
||||
ansible.builtin.copy:
|
||||
src: "{{ ansible_env.HOME }}/ritual/grpcbalancer/grpc-balancer.service"
|
||||
dest: /etc/systemd/system/
|
||||
mode: '0644'
|
||||
|
||||
- name: Start and enable grpcbalancer service
|
||||
ansible.builtin.systemd:
|
||||
name: grpc-balancer
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
# - name: Install Docker
|
||||
# ansible.builtin.shell: curl -sL https://get.docker.com | sudo sh -
|
||||
#
|
||||
@ -171,11 +205,18 @@
|
||||
async: "{{ 60 * 15 }}"
|
||||
poll: 30
|
||||
|
||||
- name: Update wallet, private key and RPC URL in project
|
||||
ansible.builtin.shell: bash update.sh {{ wallet }} {{ private_key }} {{ rpc_url }}
|
||||
- name: Update environment variables
|
||||
ansible.builtin.shell: |
|
||||
./update.sh ID "{{ id }}"
|
||||
./update.sh GRIST_SERVER "{{ grist_server }}"
|
||||
./update.sh GRIST_DOC_ID "{{ grist_doc_id }}"
|
||||
./update.sh GRIST_API_KEY "{{ grist_api_key }}"
|
||||
./update.sh WALLET_ADDRESS "{{ wallet }}"
|
||||
./update.sh PRIVATE_KEY "{{ private_key }}"
|
||||
./update.sh RPC_URL "{{ rpc_url }}"
|
||||
args:
|
||||
chdir: "{{ ansible_env.HOME }}/ritual"
|
||||
|
||||
changed_when: false
|
||||
|
||||
- name: Install Forge and Infernet SDK
|
||||
ansible.builtin.shell: |
|
||||
|
||||
Reference in New Issue
Block a user