aboutsummaryrefslogtreecommitdiffstats
path: root/opt/servers/roles/nginx/tasks/main.yml
blob: 5c78166c2327750e049b188127d9266088ac2928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: nginx is installed
  become: true
  package: name=nginx state=present
- name: qtip server configuration is generated
  become: true
  template: src={{ item }}.conf.j2 dest=/etc/nginx/sites-enabled/{{ item }}.conf
  with_items:
    - elk
    - qtip
    - testapi
  notify:
    - restart nginx