---
title: "Discussion on \"Deploying static website on Nginx web server using ansible playbook.\" | Hashnode"
description: "Discussion on \"Deploying static website on Nginx web server using ansible playbook.\". Create playbook\n  - name: Install nginx and serve static website\n  hosts: prod\n  become: yes\n  tasks:\n  - name: install nginx\n  apt:\n  name: nginx\n  state: latest\n  - name: start nginx\n  service:\n  name: nginx\n  state: started\n  enabled: yes\n  - name..."
url: "https://hashnode.com/posts/deploying-static-website-on-nginx-web-server-using-ansible-playbook/650be232a790f06911472722"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Deploying static website on Nginx web server using ansible playbook.](https://journeytodevops.hashnode.dev/deploying-static-website-on-nginx-web-server-using-ansible-playbook?utm_source=hashnode&utm_medium=feed)

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...

Sep 21, 2023 · 1 min read · journeytodevops.hashnode.dev  
Read the article

-   [#ansible](https://hashnode.com/tag/ansible)
-   [#ansible-playbook](https://hashnode.com/tag/ansible-playbook)
-   [#90daysofdevops](https://hashnode.com/tag/90daysofdevops)

## Written by

[Manish Negi](https://hashnode.com/@manishnegi442)

@manishnegi442

  
[View profile](https://hashnode.com/@manishnegi442)

Cloud Devops Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
