add support to monitor nginx
This commit is contained in:
parent
fb90bb6cad
commit
c19f5fa226
4 changed files with 29 additions and 0 deletions
|
|
@ -32,3 +32,19 @@
|
|||
|
||||
- name: delete nginx default config
|
||||
file: path=/etc/nginx/sites-enabled/default state=absent
|
||||
|
||||
- name: copy nginx status config
|
||||
copy:
|
||||
src: monitoring
|
||||
dest: /etc/nginx/sites-available/monitoring
|
||||
mode: 0755
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
- name: activate nginx status config
|
||||
file:
|
||||
path: /etc/nginx/sites-enabled/monitoring
|
||||
src: /etc/nginx/sites-available/monitoring
|
||||
state: link
|
||||
notify:
|
||||
- restart nginx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue