configure nginx with file
authorLorin Hochstein <lhochstein@netflix.com>
Mon, 23 Jan 2017 04:08:55 +0000 (20:08 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Mon, 23 Jan 2017 04:08:55 +0000 (20:08 -0800)
ch13/ansible/roles/nginx/tasks/main.yml

index 7034178..7a246c2 100644 (file)
@@ -1,2 +1,8 @@
 ---
-# tasks file for nginx
+- name: remove default config files
+  file: path={{ item }} state=absent
+  with_items:
+    - /etc/nginx/conf.d/default.conf
+    - /etc/nginx/conf.d/example_ssl.conf
+- name: add mezzanine config
+  copy: src=nginx.conf dest=/etc/nginx/conf.d/mezzanine.conf