Deploy OpenClaw, a Telegram bot that provides access to Ollama models via Telegram messaging.
{{ vault_secret_prefix }}/openclaw:telegram_tokennpm install -g openclawopenclaw.service) is created for process managementConfig file location: /mnt/ai_data/openclaw/config.yml
The configuration includes:
/etc/systemd/system/openclaw.service
The service runs as a systemd unit, automatically starting on boot and restarting on failure.
The Telegram bot token is stored in Vault:
{{ vault_secret_prefix }}/openclawtelegram_tokenThe role reads the token from Vault at deploy time and writes it to the config file.
If no Telegram bot token is configured (the Vault secret is empty or absent),
the OpenClaw installation is skipped entirely during site.yml. This allows
running the full playbook without a Telegram bot token if the feature is not needed.
ansible-playbook playbooks/site.yml --tags openclaw