fix directory
This commit is contained in:
20
ansible/roles/nginx_proxy/tasks/main.yml
Normal file
20
ansible/roles/nginx_proxy/tasks/main.yml
Normal file
@ -0,0 +1,20 @@
|
||||
- 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
|
Reference in New Issue
Block a user