From 8030280e59afcdf849bdaa40a94e6493ec2342e3 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sun, 22 Jan 2017 20:08:55 -0800 Subject: [PATCH] configure nginx with file --- ch13/ansible/roles/nginx/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ch13/ansible/roles/nginx/tasks/main.yml b/ch13/ansible/roles/nginx/tasks/main.yml index 7034178..7a246c2 100644 --- a/ch13/ansible/roles/nginx/tasks/main.yml +++ b/ch13/ansible/roles/nginx/tasks/main.yml @@ -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 -- 2.44.0