ansible-wordpress-host-init/roles/install-nginx/tasks/main.yml
2023-03-28 10:24:45 +02:00

22 lines
322 B
YAML

---
- name: Failsafe - disable Apache if exists
systemd:
name: apache2
state: stopped
enabled: no
- name: Install Nginx
apt:
pkg:
- nginx
- certbot
- python3-certbot-nginx
- name: Enable Nginx service
systemd:
name: nginx
daemon_reload: yes
enabled: yes
state: started