Go to file
Robert Kaussow 365565c90d
Some checks failed
continuous-integration/drone/push Build is failing
refactor docs
2020-01-22 22:36:03 +01:00
defaults remove iptables integration 2019-10-28 20:07:54 +01:00
handlers fix become handling 2018-11-05 00:19:24 +01:00
meta override meta author for readme 2019-11-07 09:24:51 +01:00
molecule refactor docs 2020-01-22 22:36:03 +01:00
tasks remove iptables integration 2019-10-28 20:07:54 +01:00
templates/etc/mosquitto fix ansible_managed handling 2019-08-28 10:56:35 +02:00
vars add extra packages variable 2019-08-06 21:24:37 +02:00
.drone.jsonnet refactor docs 2020-01-22 22:08:44 +01:00
.drone.yml refactor docs 2020-01-22 22:08:44 +01:00
.gitignore enable molecule tests 2019-06-10 16:14:35 +02:00
.later.yml cleanup pipeline 2019-11-22 23:59:05 +01:00
LICENSE Initial commit 2017-12-16 19:17:49 +01:00
README.md [SKIP CI] update readme 2019-11-22 23:05:12 +00:00

xoxys.mosquitto

Build Status

Role to setup mosquitto mqtt broker

Table of content


Default Variables

mosquitto_acl

Default value

mosquitto_acl: []

Example usage

mosquitto_acl:
  - name: iot
    user: admin
    acls:
      - acl_base: topic  (topic|pattern, defaults to topic)
        acl_topic: ""
        acl_policy: readwrite
  - name: readonly_iot
    user: user1
    acls:
      - acl_base: topic
        acl_topic: my/devices
        acl_policy: readwrite

mosquitto_acl_enabled

Default value

mosquitto_acl_enabled: false

mosquitto_acl_file

Default value

mosquitto_acl_file: '{{ mosquitto_base_dir }}/aclfile'

mosquitto_base_dir

Default value

mosquitto_base_dir: /etc/mosquitto

mosquitto_bind_address

Default value

mosquitto_bind_address: '{{ ansible_default_ipv4.address }}'

mosquitto_ca_path

Default value

mosquitto_ca_path: /etc/pki/tls/certs/

mosquitto_group

Default value

mosquitto_group: mosquitto

mosquitto_packages_extra

Default value

mosquitto_packages_extra: []

mosquitto_password_auth_enabled

Default value

mosquitto_password_auth_enabled: false

mosquitto_password_auth_file

Default value

mosquitto_password_auth_file: '{{ mosquitto_base_dir }}/passwd'

mosquitto_password_auth_users

Default value

mosquitto_password_auth_users: []

Example usage

mosquitto_password_auth_users:
  - name: admin
    password: mysecret
    state: present
  - name: user1
    password: very_secure
    state: absent

mosquitto_persistence_enabled

Default value

mosquitto_persistence_enabled: false

mosquitto_persistence_path

Default value

mosquitto_persistence_path: /var/lib/mosquitto/mosquitto.db

mosquitto_pid_file

Default value

mosquitto_pid_file: /var/run/mosquitto.pid

mosquitto_port

Default value

mosquitto_port: 1883

mosquitto_tls_cert_path

Default value

mosquitto_tls_cert_path: '{{ mosquitto_base_dir }}/tls/certs/mycert.pem'

mosquitto_tls_cert_source

Default value

mosquitto_tls_cert_source: mycert.pem

mosquitto_tls_ciphers

Default value

mosquitto_tls_ciphers:
  - DEFAULT
  - '!aNULL'
  - '!eNULL'
  - '!LOW'
  - '!EXPORT'
  - '!SSLv2'
  - '@STRENGTH'

mosquitto_tls_enabled

Default value

mosquitto_tls_enabled: false

mosquitto_tls_key_path

Default value

mosquitto_tls_key_path: '{{ mosquitto_base_dir }}/tls/private/mykey.pem'

mosquitto_tls_key_source

Default value

mosquitto_tls_key_source: mykey.pem

mosquitto_user

Default value

mosquitto_user: mosquitto

Dependencies

None.

License

MIT

Author

xoxys