Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cotech
ansible
Commits
f56e48a2
Commit
f56e48a2
authored
7 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Various updates
parent
61e1011f
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Postfix
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+9
-7
9 additions, 7 deletions
README.md
roles/docker/tasks/main.yml
+8
-0
8 additions, 0 deletions
roles/docker/tasks/main.yml
with
17 additions
and
7 deletions
README.md
+
9
−
7
View file @
f56e48a2
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
roles/docker/tasks/main.yml
+
8
−
0
View file @
f56e48a2
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment