From a3c4871830a024e6dfce23cd49ffa2d9b037b85e Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 21 Aug 2015 15:44:20 +0200 Subject: Add .asc to text/plain nginx MIME types. --- roles/common-web/tasks/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'roles/common-web') diff --git a/roles/common-web/tasks/main.yml b/roles/common-web/tasks/main.yml index 41cfa46..1f8655a 100644 --- a/roles/common-web/tasks/main.yml +++ b/roles/common-web/tasks/main.yml @@ -53,8 +53,17 @@ notify: - Restart Nginx +- name: Add .asc to text/plain MIME types + lineinfile: dest=/etc/nginx/mime.types + regexp='^(\s*text/plain\s+)' + backrefs=yes + line='\1txt asc;' + register: r3 + notify: + - Restart Nginx + - name: Start Nginx service: name=nginx state=started - when: not (r1.changed or r2.changed) + when: not (r1.changed or r2.changed or r3.changed) - meta: flush_handlers -- cgit v1.2.3