diff options
Diffstat (limited to 'roles/awstats/tasks')
-rw-r--r-- | roles/awstats/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/awstats/tasks/main.yml b/roles/awstats/tasks/main.yml new file mode 100644 index 0000000..3c08700 --- /dev/null +++ b/roles/awstats/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: Install package + package: + name: + - awstats + state: present + +- template: + src: awstats.conf + dest: "/etc/awstats/awstats.{{ item }}.conf" + with_items: "{{ vhosts }}" + +- template: + src: logs.conf + dest: "/etc/httpd/conf.d/{{ item }}.conf.d/logs.conf" + with_items: "{{ vhosts }}" + notify: verify config and restart httpd + |