From 0261e875679f1bf63c8d689da7fc7e014597885d Mon Sep 17 00:00:00 2001 From: Stonewall Jackson Date: Sat, 4 Feb 2023 01:23:43 -0500 Subject: initial commit --- playbooks/webserver_internal.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 playbooks/webserver_internal.yml (limited to 'playbooks/webserver_internal.yml') diff --git a/playbooks/webserver_internal.yml b/playbooks/webserver_internal.yml new file mode 100644 index 0000000..eb27c97 --- /dev/null +++ b/playbooks/webserver_internal.yml @@ -0,0 +1,46 @@ +- import_playbook: common.yml + vars: + hostlist: www1 + +- name: configure internal web servers + hosts: www1 + tags: apache + roles: + - role: apache_vhost + apache_default_vhost: yes + apache_config: | + AliasMatch "^/pub/user/([^/]+)(.*)" "/nfs/user/$1/pub$2" + AliasMatch "^/pub/group/([^/]+)(.*)" "/nfs/group/$1/pub$2" + + + Options -FollowSymLinks +Indexes + AllowOverride None + Require all granted + + + + Options -FollowSymLinks +Indexes + AllowOverride None + Require all granted + + tasks: + - name: generate index.html + tags: apache + copy: + dest: /var/www/html/index.html + content: | + + + + + {{ domain }} webserver + + +

This is the {{ organization }} internal webserver. To access files in user or group + public directories, try paths like the following: +

+ -- cgit