Add Ansible task to deploy our website

This commit is contained in:
2026-01-21 10:20:29 +07:00
parent 8a39803f01
commit 6748a1930b
20 changed files with 278 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
# tasks file for nginx_server
- name: Install EPEL Release
dnf:
name: epel-release
state: present
- name: Install NGINX
dnf:
name: nginx
state: present
- name: Copy index.html file
template:
src: index.html.j2
dest: /usr/share/nginx/html/index.html
mode: '0644'
notify: Restart Nginx
- name: Start NGINX and Enable startup with OS
service:
name: nginx
state: started
enabled: yes