summaryrefslogtreecommitdiff
path: root/playbook.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'playbook.yaml')
-rw-r--r--playbook.yaml22
1 files changed, 1 insertions, 21 deletions
diff --git a/playbook.yaml b/playbook.yaml
index 5de4fea..06ebc59 100644
--- a/playbook.yaml
+++ b/playbook.yaml
@@ -59,7 +59,7 @@
-binary | hexdump -ve '/1 "%02x"'
register: dane_hash
changed_when: false
- delegate_to: localhost
+ delegate_to: "{{ cert_host }}"
# We allow status code 400 here as this is returned by deSEC if the domain
# already exists. Ideally, we should filter out genuinely good/bad requests
@@ -377,26 +377,6 @@
state: absent
become: true
- - name: Ensure prosody key is installed
- ansible.builtin.copy:
- src: "~/.lego/certificates/{{ virtual_host }}.key"
- dest: "/etc/prosody/certs"
- mode: "0640"
- owner: root
- group: prosody
- become: true
- notify: Restart prosody
-
- - name: Ensure prosody certificate is installed
- ansible.builtin.copy:
- src: "~/.lego/certificates/{{ virtual_host }}.crt"
- dest: "/etc/prosody/certs"
- mode: "0640"
- owner: root
- group: prosody
- become: true
- notify: Restart prosody
-
- name: Ensure prosody users are registered
ansible.builtin.expect:
command: "prosodyctl adduser {{ item.name }}@{{ virtual_host }}"