summaryrefslogtreecommitdiffstats
path: root/roles/common-web
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-08-21 15:44:20 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-08-21 15:44:20 +0200
commita3c4871830a024e6dfce23cd49ffa2d9b037b85e (patch)
tree9f9cb2c1ba5767df340ed1199852dd354d5e98b1 /roles/common-web
parentb232b301fe397ca6948c4769ead216a57ddf73b8 (diff)
Add .asc to text/plain nginx MIME types.
Diffstat (limited to 'roles/common-web')
-rw-r--r--roles/common-web/tasks/main.yml11
1 files changed, 10 insertions, 1 deletions
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