coursework/ansible/roles/nginx_proxy/tasks/main.yml

20 lines
372 B
YAML
Raw Normal View History

2024-11-12 20:14:17 +00:00
- 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