add index.html and nginx.conf
authorLorin Hochstein <lorin.hochstein@sendgrid.com>
Wed, 4 Feb 2015 02:24:50 +0000 (21:24 -0500)
committerLorin Hochstein <lorin.hochstein@sendgrid.com>
Wed, 4 Feb 2015 02:24:50 +0000 (21:24 -0500)
ch02/playbooks/files/index.html [new file with mode: 0644]
ch02/playbooks/files/nginx.conf [new file with mode: 0644]

diff --git a/ch02/playbooks/files/index.html b/ch02/playbooks/files/index.html
new file mode 100644 (file)
index 0000000..d249fb7
--- /dev/null
@@ -0,0 +1,10 @@
+<html>
+  <head>
+    <title>Welcome to nginx, via Ansible!</title>
+  </head>
+  <body>
+  <h1>nginx, configured by Ansible</h1>
+  <p>If you can see this, Ansible successfully installed nginx.</p>
+  </body>
+</html>
+
diff --git a/ch02/playbooks/files/nginx.conf b/ch02/playbooks/files/nginx.conf
new file mode 100644 (file)
index 0000000..594b47c
--- /dev/null
@@ -0,0 +1,13 @@
+server {
+        listen 80 default_server;
+        listen [::]:80 default_server ipv6only=on;
+
+        root /usr/share/nginx/html;
+        index index.html index.htm;
+
+        server_name localhost;
+
+        location / {
+                try_files $uri $uri/ =404;
+        }
+}