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