- name: configure internal web servers hosts: www1 roles: - role: common tags: common - 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 tags: apache tasks: - name: generate index.html 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:

tags: apache