From f56e48a2130a3f93b42ac0b7ead2f42b945ce4fc Mon Sep 17 00:00:00 2001
From: Chris Croome <chris@webarchitects.co.uk>
Date: Mon, 8 May 2017 15:03:14 +0100
Subject: [PATCH] Various updates

---
 README.md                   | 16 +++++++++-------
 roles/docker/tasks/main.yml |  8 ++++++++
 2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index d990884..231dd6c 100644
--- a/README.md
+++ b/README.md
@@ -4,11 +4,12 @@ These Playbooks are designed to be used on Debian Stretch virtual servers.
 
 ## Discourse
 
-Ansible Playbooks to [install Discourse via
-Docker](https://github.com/discourse/discourse_docker) on a Debian Stretch
-virtual server and to configure the virtual server to use Postfix for incoming
-and outgoing emails (there is also a not-quite-working and, for now, abandoned
-[exim branch](https://git.coop/cotech/ansible/tree/exim)).
+Ansible Playbooks to install
+[Docker](https://store.docker.com/editions/community/docker-ce-server-debian)
+and [Discourse](https://github.com/discourse/discourse_docker) on a Debian
+Stretch virtual server and to configure the virtual server to use Postfix for
+incoming and outgoing emails (there is also a not-quite-working and, for now,
+abandoned [exim branch](https://git.coop/cotech/ansible/tree/exim)).
 
 The email setup is based on the [mail-reciever Docker
 container](https://github.com/discourse/mail-receiver) plus [this pull
@@ -18,8 +19,9 @@ email](https://meta.discourse.org/t/emails-with-local-smtp/23645/28), with an
 additional [Ruby
 script](https://git.coop/cotech/ansible/blob/master/roles/email/files/discourse-smtp-rcpt-acl).
 
-Login to the virtual server console, install `python`, enable root ssh access
-using keys by adding your keys to `/root/.ssh/authorized_keys`, edit
+Before running these Playbooks, create a virtual server, runnng Debian Stretch
+then login to the virtual server's console, install `python`, enable root ssh
+access using keys by adding your keys to `/root/.ssh/authorized_keys`, edit
 `/etc/sshd/sshd_config` to set `PermitRootLogin prohibit-password`, run
 `service ssh restart` and then run the first Playbook:
 
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index cef91ff..f5f6664 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -6,7 +6,10 @@
     update_cache: yes
   with_items:
     - apt-transport-https
+    - ca-certificates
+    - curl
     - git
+    - software-properties-common
 
 - name: Docker GPG key present
   apt_key:
@@ -24,3 +27,8 @@
     name: docker-ce
     state: present
     update_cache: yes
+
+- name: Docker started
+  service:
+    name: docker
+    state: started
-- 
GitLab