community.general.ejabberd_user (8.5.0) — module

Manages users for ejabberd servers

Authors: Peter Sprygada (@privateip)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This module provides user management for ejabberd servers


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Example playbook entries using the ejabberd_user module to manage users state.

- name: Create a user if it does not exist
  community.general.ejabberd_user:
    username: test
    host: server
    password: password
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete a user if it exists
  community.general.ejabberd_user:
    username: test
    host: server
    state: absent

Inputs

    
host:
    description:
    - the ejabberd host associated with this username
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - describe the desired state of the user to be managed
    required: false
    type: str

logging:
    default: false
    description:
    - enables or disables the local syslog facility for this module
    required: false
    type: bool

password:
    description:
    - the password to assign to the username
    required: false
    type: str

username:
    description:
    - the name of the user to manage
    required: true
    type: str