aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-06-12 21:02:22 -0400
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-06-12 21:02:22 -0400
commit865e2f05621fc10f3d332d3840707997c0b94abf (patch)
treeb5f0c85951175b813996991298501c6afb012824 /playbooks
parent78fd379d33bd6853123c02a76c97ca382aa24be9 (diff)
downloadselfhosted-865e2f05621fc10f3d332d3840707997c0b94abf.tar.gz
selfhosted-865e2f05621fc10f3d332d3840707997c0b94abf.zip
add mastodon role
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/mastodon.yml17
-rw-r--r--playbooks/populate_domain.yml2
-rw-r--r--playbooks/site.yml1
-rw-r--r--playbooks/webserver_public_example.yml1
4 files changed, 21 insertions, 0 deletions
diff --git a/playbooks/mastodon.yml b/playbooks/mastodon.yml
new file mode 100644
index 0000000..8c7b381
--- /dev/null
+++ b/playbooks/mastodon.yml
@@ -0,0 +1,17 @@
+- name: configure mastodon servers
+ hosts: mastodon_servers
+ roles:
+ - role: common
+ tags: common
+
+ - role: mastodon
+ tags: mastodon
+
+ - role: apache_vhost
+ apache_server_name: '{{ mastodon_web_domain }}'
+ apache_server_aliases: []
+ apache_letsencrypt: yes
+ apache_redirect_to_https: yes
+ apache_document_root: '{{ mastodon_webroot }}'
+ apache_config: '{{ mastodon_apache_config }}'
+ tags: apache
diff --git a/playbooks/populate_domain.yml b/playbooks/populate_domain.yml
index acb1ec7..c118af9 100644
--- a/playbooks/populate_domain.yml
+++ b/playbooks/populate_domain.yml
@@ -24,6 +24,8 @@
attributes:
mailAlternateAddress: '{{ item.mail_aliases | default([]) }}'
jid: '{{ item.jid | default([]) }}'
+ mastodonUsername: '{{ item.mastodon_id | default([]) }}'
+ matrixUsername: '{{ item.mxid | default([]) }}'
bind_dn: uid={{ ipa_user }},{{ freeipa_user_basedn }}
bind_pw: '{{ ipa_pass }}'
server_uri: ldaps://{{ ipa_host }}
diff --git a/playbooks/site.yml b/playbooks/site.yml
index fa79f8d..48b6144 100644
--- a/playbooks/site.yml
+++ b/playbooks/site.yml
@@ -36,3 +36,4 @@
- import_playbook: xmpp.yml
- import_playbook: asterisk.yml
- import_playbook: matrix.yml
+- import_playbook: mastodon.yml
diff --git a/playbooks/webserver_public_example.yml b/playbooks/webserver_public_example.yml
index d9cb468..69a3254 100644
--- a/playbooks/webserver_public_example.yml
+++ b/playbooks/webserver_public_example.yml
@@ -11,6 +11,7 @@
apache_letsencrypt: yes
apache_document_root: /var/www/www.example.com
apache_config: |
+ Redirect permanent /.well-known/webfinger https://mastodon.example.com/.well-known/webfinger
Alias /.well-known/matrix /var/www/well-known/example.com/matrix
tags: apache