ansible configuration for SUI Network
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --user
python3 -m pip install --user ansible
source .profile
ansible --version
Create key
ssh-keygen -t ed25519 -C "[email protected]"
Add the public key to the authorized_keys file
echo "ssh-ed25519 <ed25519-PUBLIC-KEY [email protected]" >> $HOME/.ssh/authorized_keys
eval `ssh-agent -s`
`ssh-add`
Clone this repo
git clone https://github.com/0xzoz/sui-ansible
Edit inventory
cd sui-ansible; cp inventory.yml.sample inventory.yml
Add IP of target to inventory.yml
all:
hosts:
sui_fullnode:
ansible_host: <YOUR_TARGET_IP>
cd sui-ansible; ansible-playbook main.yml -i inventory.yml --e "target=sui_fullnode"