From 978a6c928cd0b6d420dcf15e349776c8bfc65ebc Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 21 Apr 2021 17:03:38 +0200 Subject: Add awstats logs --- roles/awstats_vhost/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/awstats_vhost/tasks/main.yml (limited to 'roles/awstats_vhost/tasks') diff --git a/roles/awstats_vhost/tasks/main.yml b/roles/awstats_vhost/tasks/main.yml new file mode 100644 index 0000000..90d0691 --- /dev/null +++ b/roles/awstats_vhost/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: Deploy custom config for awstats + template: + dest: "/etc/httpd/conf.d/{{ _website_domain }}.conf.d/awstats.conf" + src: awstats.conf + notify: verify config and restart httpd + +- package: + name: python-passlib + state: present + +- htpasswd: + path: /etc/httpd/htpasswd + name: "guest" + password: "{{ awstats_guest_password }}" + owner: root + group: apache + mode: 0640 -- cgit