diff options
Diffstat (limited to 'roles/awstats_vhost/tasks')
-rw-r--r-- | roles/awstats_vhost/tasks/main.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/awstats_vhost/tasks/main.yml b/roles/awstats_vhost/tasks/main.yml index 90d0691..8617ac5 100644 --- a/roles/awstats_vhost/tasks/main.yml +++ b/roles/awstats_vhost/tasks/main.yml @@ -1,4 +1,16 @@ --- +- include_role: + name: httpd + tasks_from: vhost + vars: + website_domain: www.example.com + document_root: /usr/share/awstats/wwwroot/ + use_letsencrypt: True + redirects: + - src: '^/$' + target: '/cgi-bin/awstats.pl' + match: True + - name: Deploy custom config for awstats template: dest: "/etc/httpd/conf.d/{{ _website_domain }}.conf.d/awstats.conf" |