Deploying static website on Nginx web server using ansible playbook.
Create playbook
- name: Install nginx and serve static website
hosts: prod
become: yes
tasks:
- name: install nginx
apt:
name: nginx
state: latest
- name: start nginx
service:
name: nginx
state: started
enabled: yes
- name...
journeytodevops.hashnode.dev1 min read