summaryrefslogtreecommitdiffstats
path: root/roles/awstats/tasks/main.yml
blob: 3c087004454b3f5fff6e9bc4db8df2eebe234ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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