- 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: