mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
awstats - softcode nginx_config_dir
This commit is contained in:
parent
679790b1e7
commit
adde3b9369
2 changed files with 3 additions and 5 deletions
|
@ -19,13 +19,13 @@
|
|||
group: root
|
||||
mode: 0644
|
||||
with_items:
|
||||
- { src: "awstats-nginx.conf", dest: "/etc/nginx/conf.d/" }
|
||||
- { src: "awstats-nginx.conf", dest: "{{ nginx_config_dir }}/" }
|
||||
- { src: "cgi-bin.php", dest: "/etc/nginx/" }
|
||||
when: awstats_enabled and nginx_enabled
|
||||
|
||||
- name: Remove /etc/nginx/conf.d/awstats-nginx.conf
|
||||
- name: Remove {{ nginx_config_dir }}/awstats-nginx.conf
|
||||
file:
|
||||
path: /etc/nginx/conf.d/awstats-nginx.conf
|
||||
path: "{{ nginx_config_dir }}/awstats-nginx.conf"
|
||||
state: absent
|
||||
when: not awstats_enabled
|
||||
|
||||
|
|
|
@ -44,8 +44,6 @@
|
|||
group: root
|
||||
mode: 0644
|
||||
with_items:
|
||||
# - { src: "awstats-nginx.conf", dest: "/etc/nginx/conf.d/" }
|
||||
# - { src: "cgi-bin.php", dest: "/etc/nginx/" }
|
||||
- { src: "apache-awstats.conf", dest: "/etc/{{ apache_config_dir }}/awstats.conf" }
|
||||
when: awstats_enabled and is_debuntu
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue