-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall_taiko_node.yml
51 lines (43 loc) · 1.42 KB
/
install_taiko_node.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
- name: Install Taiko Node
hosts: localhost
become: true
vars_prompt:
- name: l1_endpoint_http
prompt: "Enter your L1 Holesky HTTP endpoint"
private: no
- name: l1_endpoint_ws
prompt: "Enter your L1 Holesky WebSocket endpoint"
private: no
- name: proposer_private_key
prompt: "Enter your dedicated Taiko Metamask account's private key"
private: no
tasks:
- name: Update and install necessary packages
ansible.builtin.shell: |
sudo apt update && sudo apt upgrade -y
sudo apt install docker-ce docker-compose git -y
- name: Clone Taiko project repository
ansible.builtin.git:
repo: 'https://github.com/taikoxyz/simple-taiko-node.git'
dest: '~/taiko-node'
version: 'main'
force: yes
- name: Get public IP
ansible.builtin.shell: curl http://checkip.amazonaws.com
register: beacon_node_ip
changed_when: false
- name: Setup .env file from template
ansible.builtin.template:
src: taiko-env.j2
dest: '~/taiko-node/.env'
- name: Launch Taiko node as a service
ansible.builtin.template:
src: taiko-node.service.j2
dest: '/etc/systemd/system/taiko-node.service'
- name: Reload systemd and start Taiko node service
ansible.builtin.systemd:
name: taiko-node
state: stopped
enabled: yes
daemon_reload: yes