Initial commit
This commit is contained in:
commit
06e6de1680
21 changed files with 646 additions and 0 deletions
34
tasks/main.yml
Normal file
34
tasks/main.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
- name: install nginx
|
||||
apt: pkg=nginx
|
||||
notify:
|
||||
- delete nginx index.nginx-debian.html
|
||||
- restart nginx
|
||||
|
||||
- name: copy configs
|
||||
copy:
|
||||
src: config/
|
||||
dest: /etc/nginx/
|
||||
directory_mode: 0755
|
||||
group: root
|
||||
owner: root
|
||||
mode: 0644
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
- name: execute ssl template
|
||||
template:
|
||||
src: ssl_files.j2
|
||||
dest: /etc/nginx/conf.d/ssl_files.conf
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
- name: execute dns template
|
||||
template:
|
||||
src: dns.conf.j2
|
||||
dest: /etc/nginx/conf.d/dns.conf
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
- name: delete nginx default config
|
||||
file: path=/etc/nginx/sites-enabled/default state=absent
|
||||
Loading…
Add table
Add a link
Reference in a new issue