main.yml 393 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: create ssl cert
  include_role:
    name: certificate
  vars:
    domains: ["{{ ping_domain }}"]

- name: make nginx log dir
  file: path=/var/log/nginx/{{ ping_domain }} state=directory owner=root group=root mode=0755

- name: set up nginx
  template: src=nginx.d.conf.j2 dest="/etc/nginx/nginx.d/ping.conf" owner=root group=root mode=644
  notify: reload nginx
  tags: ['nginx']