summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2021-09-03 16:25:50 +0200
committerMichael Scherer <misc@redhat.com>2021-09-03 16:25:50 +0200
commit124bc295bc9171372923b12e1e7c0150b8c60fc5 (patch)
tree74b1108bcf64861697be58e08d327d48989152b7 /roles
parentd80f5e001caa184fa45d329b3d1e5cd01dd77801 (diff)
Move to the new syntax
Diffstat (limited to 'roles')
-rw-r--r--roles/awstats_vhost/meta/main.yml9
-rw-r--r--roles/awstats_vhost/tasks/main.yml12
2 files changed, 13 insertions, 8 deletions
diff --git a/roles/awstats_vhost/meta/main.yml b/roles/awstats_vhost/meta/main.yml
index 2a3c952..23d65c7 100644
--- a/roles/awstats_vhost/meta/main.yml
+++ b/roles/awstats_vhost/meta/main.yml
@@ -1,9 +1,2 @@
---
-dependencies:
-- role: httpd
- use_letsencrypt: True
- documentroot: /usr/share/awstats/wwwroot/
- redirects:
- - src: '^/$'
- target: '/cgi-bin/awstats.pl'
- match: True
+dependencies: []
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"