25 lines
401 B
YAML
25 lines
401 B
YAML
---
|
|
- name: Update APT Cache
|
|
apt:
|
|
update_cache: yes
|
|
|
|
- name: Install NGINX
|
|
apt:
|
|
pkg:
|
|
- nginx
|
|
- nginx-extras
|
|
- apache2-utils
|
|
- libpcre3-dev
|
|
state: present
|
|
|
|
- name: Add SSL Proxy for TLS
|
|
template:
|
|
src: ssl.conf
|
|
dest: /etc/nginx/conf.d/ssl.conf
|
|
mode: 0644
|
|
|
|
- name: Restart NGINX and Enable at Boot
|
|
service:
|
|
name: nginx
|
|
state: restarted
|