From 41d2c5c999dbcc6b76143b533c3ba32be8a1869d Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Mon, 6 Feb 2017 20:43:43 -0800 Subject: [PATCH] Fix typo, don't specify a command for docker container --- ch13/deploy.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ch13/deploy.yml b/ch13/deploy.yml index a1d7358..914f4e3 100644 --- a/ch13/deploy.yml +++ b/ch13/deploy.yml @@ -1,5 +1,5 @@ - name: install Docker - hosts: postgres + hosts: all become: True tasks: - name: install packages @@ -55,7 +55,7 @@ gather_facts: False vars: url: "https://{{ ansible_host }}" - database_host: "{{ groups[postgres][0] }}" + database_host: "{{ groups['postgres'][0] }}" data_dir: /data/ghostdata certs_dir: /data/certs tasks: @@ -63,8 +63,8 @@ file: path: "{{ data_dir }}" state: directory - - name: copy the config file - template: src=templates/config.js.j2 dest={{ datadir}}/config.js + - name: generate the config file + template: src=templates/config.js.j2 dest={{ data_dir }}/config.js - name: start ghost container docker_container: name: ghost @@ -85,7 +85,6 @@ docker_container: name: nginx_ghost image: ansiblebook/nginx-ghost - command: npm start --production links: - ghost ports: -- 2.44.0