Skip to content
Snippets Groups Projects
Commit f56e48a2 authored by Chris Croome's avatar Chris Croome
Browse files

Various updates

parent 61e1011f
No related branches found
No related tags found
1 merge request!1Postfix
......@@ -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:
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment