Skip to main content

ash.avalanche.ash_cli

This Ansible role allows to install and configure the Ash CLI.

Role variables​

VariableCommentDefault value
ash_cli_versionCLI version0.1.1
ash_cli_install_dirBase directory to install CLI/opt/avalanche/ash-cli
ash_cli_conf_dirWhere to store the default CLI configuration/etc/avalanche/ash-cli/conf
ash_cli_ownerThe user of the Ash Cli dirs and binaryroot
ash_cli_groupThe group of the Ash Cli dirs and binaryroot
avalanche_network_idThe default network of the CLI. Can be fuji, mainnet or local.fuji
avalanche_pchain_local_urlIf avalanche_network_id is local, this URL will be used as rpcUrl for the P-Chain in the CLI default configuration.http://127.0.0.1:9650/ext/bc/P
ash_cli_custom_networksCustom networks to add to the CLI configuration. See Custom networks.NA

Custom networks​

This role allows to add custom networks to the CLI configuration. You can see an example in the avalanche/node/tasks/main.yml playbook where the local network is added to the CLI configuration.

Each network is defined by a name and the endpoints to use for the P-Chain, C-Chain and X-Chain APIs:

local network definition
ash_cli_custom_networks:
local:
pchain_rpc_url: "http://127.0.0.1:9650/ext/bc/P"
cchain_rpc_url: "http://127.0.0.1:9650/ext/bc/C/rpc"
xchain_rpc_url: "http://127.0.0.1:9650/ext/bc/X"