DEV Community

Said Olano
Said Olano

Posted on

How to create a nginx web server with ansible

If you want to create, configure and deploy one Nginx web server with ansible as infrastructure tool, here u are on the right place.

1.- Create and configure your project:

Image description

2.- Run this command (Mac OS):

ansible-playbook -i inventories/localhost.yml playbooks/nginx-server.yml -e "@group_vars/all.yml" --ask-become-pass
Enter fullscreen mode Exit fullscreen mode

3.- You will see the results it the browser:

Image description

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.