mirror of
https://git.kaidan.im/lnj/ansible-role-ejabberd
synced 2020-03-25 15:46:19 +01:00
33 lines
754 B
YAML
33 lines
754 B
YAML
---
|
|
|
|
- name: Install xmpp-cloud-auth dependencies
|
|
apt:
|
|
name: '{{ item }}'
|
|
state: latest
|
|
with_items:
|
|
- git
|
|
- python3
|
|
- python3-requests
|
|
- python3-configargparse
|
|
- python3-bcrypt
|
|
- python3-bsddb3
|
|
- socket
|
|
|
|
- name: Install xmpp-cloud-auth from git
|
|
shell: git clone https://github.com/jsxc/xmpp-cloud-auth && cd xmpp-cloud-auth && ./install.sh
|
|
args:
|
|
chdir: /opt
|
|
creates: /opt/xmpp-cloud-auth/
|
|
|
|
- name: Apply xmpp-cloud-auth config
|
|
template:
|
|
src: xcauth.conf.j2
|
|
dest: /etc/xcauth.conf
|
|
owner: xcauth
|
|
group: xcauth
|
|
mode: 0660
|
|
|
|
- name: Setup logratate for xcauth
|
|
shell: cp /opt/xmpp-cloud-auth/tools/xcauth.logrotate /etc/logrotate.d/xcauth
|
|
args:
|
|
creates: /etc/logrotate.d/xcauth
|