summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--playbook.yaml10
2 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2cbab87..4547009 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ deployments.
Set up a server with the following things configured:
-* SSH access
+* SSH access to a user that can become root
* DNS records (see [Prosody's docs](https://prosody.im/doc/dns) for more info)
* `python3` installed
diff --git a/playbook.yaml b/playbook.yaml
index 85b5e50..503d3ae 100644
--- a/playbook.yaml
+++ b/playbook.yaml
@@ -16,3 +16,13 @@
- python3-certbot-apache
- ufw
state: present
+ - name: Ensure required ports are open
+ community.general.ufw:
+ rule: allow
+ name: "{{ item }}"
+ state: enabled
+ loop:
+ - OpenSSH
+ - WWW
+ - XMPP
+ become: true