19 lines
410 B
YAML
19 lines
410 B
YAML
---
|
|
- name: Install NGINX
|
|
apt:
|
|
update_cache: true
|
|
name: nginx
|
|
state: latest
|
|
register: apt_result
|
|
retries: 3
|
|
until: apt_result is succeeded
|
|
|
|
- name: Add wasm to mime type
|
|
lineinfile:
|
|
path: /etc/nginx/mime.types
|
|
regexp: '\s*application/wasm\s+wasm;$'
|
|
line: ' application/wasm wasm;'
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
insertbefore: '}'
|