From 3f05e6e50fd983d277f084528068c674862b1573 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Wed, 9 Sep 2020 07:36:28 +0000 Subject: [PATCH] Redirect collab.foo.sh root to collab --- playbooks/collab.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/playbooks/collab.yml b/playbooks/collab.yml index e751f45..4d93d82 100644 --- a/playbooks/collab.yml +++ b/playbooks/collab.yml @@ -31,6 +31,15 @@ - ldap/client tasks: + - name: redirect root web directory to collab + copy: + content: "RedirectMatch permanent \"^/$\" /collab/\n" + dest: "/etc/httpd/conf.local.d/redirects.conf" + mode: 0644 + owner: root + group: "{{ ansible_wheel }}" + notify: restart apache + - name: create htaccess for collab copy: content: |