20 lines
372 B
YAML
20 lines
372 B
YAML
|
- name: Install Nginx
|
||
|
zypper:
|
||
|
name: nginx
|
||
|
state: present
|
||
|
|
||
|
- name: Ensure Nginx is enabled and started
|
||
|
systemd:
|
||
|
name: nginx
|
||
|
enabled: yes
|
||
|
state: started
|
||
|
|
||
|
- name: Deploy Proxy Configuration
|
||
|
template:
|
||
|
src: proxy.conf.j2
|
||
|
dest: /etc/nginx/conf.d/proxy.conf
|
||
|
|
||
|
- name: Reload Nginx
|
||
|
systemd:
|
||
|
name: nginx
|
||
|
state: reloaded
|