1
0
forked from infra/ansible

prosody: use list instead of with_items

This commit is contained in:
Markus 2020-11-13 18:25:34 +01:00
parent 64a557ab85
commit 28c9d8ad3a

View File

@ -8,11 +8,11 @@
apt: name=lua-cyrussasl default_release=buster-backports
- name: Install prosody
apt: name={{ item }}
with_items:
- prosody
- libsasl2-modules-ldap
- sasl2-bin
apt:
name:
- prosody
- libsasl2-modules-ldap
- sasl2-bin
- name: Ensure certificates are available
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/prosody/certs/{{ prosody_domain }}.key -out /etc/prosody/certs/{{ prosody_domain }}.crt -days 730 -subj "/CN={{ prosody_domain }}" creates=/etc/prosody/certs/{{ prosody_domain }}.crt