From 06a5606348c85a7c5cf962728c705f775a99b3ec Mon Sep 17 00:00:00 2001 From: Peter Ansell Date: Wed, 5 Jun 2019 11:37:37 +1000 Subject: [PATCH] issue #256 : Backup nginx.conf before replacing it Signed-off-by: Peter Ansell --- ansible/roles/nginx/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/nginx/tasks/main.yml b/ansible/roles/nginx/tasks/main.yml index 34d053518..642ec87bc 100755 --- a/ansible/roles/nginx/tasks/main.yml +++ b/ansible/roles/nginx/tasks/main.yml @@ -57,6 +57,7 @@ group: "{{ root_group }}" mode: 0644 validate: "nginx -t -c %s" + backup: yes notify: - restart nginx tags: