Skip to content

Instantly share code, notes, and snippets.

@smereczynski
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save smereczynski/e8e1e952fddbf84abefd to your computer and use it in GitHub Desktop.

Select an option

Save smereczynski/e8e1e952fddbf84abefd to your computer and use it in GitHub Desktop.
Ansible simple playbook for NGINX
---
- hosts: webservers
tasks:
- name: Installs nginx web server
apt: pkg=nginx state=installed update_cache=true
notify:
- start nginx
handlers:
- name: start nginx
service: name=nginx state=started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment