ansible-wordpress-host-init/roles/install-nginx/tasks/main.yml

22 lines
322 B
YAML
Raw Normal View History

2023-03-27 14:13:41 +00:00
---
2023-03-28 08:24:45 +00:00
- name: Failsafe - disable Apache if exists
systemd:
name: apache2
state: stopped
enabled: no
2023-03-27 14:13:41 +00:00
- name: Install Nginx
apt:
pkg:
- nginx
- certbot
- python3-certbot-nginx
- name: Enable Nginx service
systemd:
name: nginx
daemon_reload: yes
enabled: yes
state: started