set up for nginx
authorLorin Hochstein <lhochstein@netflix.com>
Mon, 23 Jan 2017 04:12:24 +0000 (20:12 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Mon, 23 Jan 2017 04:12:24 +0000 (20:12 -0800)
ch13/ansible/container.yml
ch13/ansible/main.yml

index e6ce95a..cc5ddca 100644 (file)
@@ -2,3 +2,5 @@ version: "2"
 services:
   memcached:
     image: ubuntu:xenial
+  nginx:
+    image: nginx:1.11
index bde419a..3df482b 100644 (file)
@@ -8,3 +8,13 @@
       raw: apt-get -y install python
   roles:
     - memcached
+
+- hosts: nginx
+  gather_facts: false
+  pre_tasks:
+    - name: update apt cache
+      raw: apt-get update
+    - name: install python
+      raw: apt-get -y install python
+  roles:
+    - nginx