Install XMPP Bot:
- install Node.js,
- install npm,
- download archive,
- install dependencies,
- create service user,
- set configuration,
- add as a systemd service.
- Ansible >= 2.9,
- a working XMPP server.
These variables are installation related and should be checked/updated before use:
xmppbot_install_nodejs
: Does NodeJS should be installed, setfalse
if already present, default:true
,nodejs_repo
: NodeJS version to install, default:node_12.x
.domain
: your domain name (not a role variable but must be set in your playbook/host), no default,
For variables in webhooks config
, XMPP server config
, outgoing webhooks config
sections, please see configuration.
None.
- hosts: servers
vars:
domain: mydomain.ltd
roles:
- name: xmpp-bot
xmppbot_incoming_webhooks:
- path: /webhooks/alerting
action: send_xmpp_message
AGPL-3.0-or-later
This role was created in 2020 by Nioc.