Host website outside home

This commit is contained in:
Jake Howard
2020-04-26 14:26:48 +01:00
parent 36ed622a26
commit 7c6abc33fe
6 changed files with 24 additions and 9 deletions

View File

@ -30,3 +30,7 @@
- hosts: intersect
roles:
- intersect-docker
- hosts: grimes
roles:
- website

View File

@ -40,9 +40,6 @@
- name: Install torrent
include: torrent.yml
- name: Install theorangeone.net
include: theorangeone.net.yml
- name: Install tt-rss
include: tt-rss.yml

View File

@ -1,4 +1,4 @@
- name: Create theorangeone.net directory
- name: Create install directory
file:
path: /opt/theorangeone.net
state: directory
@ -6,9 +6,9 @@
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install theorangeone.net compose file
- name: Install compose file
template:
src: files/theorangeone.net/docker-compose.yml
src: files/docker-compose.yml
dest: /opt/theorangeone.net/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
@ -16,7 +16,7 @@
register: compose_file
become: true
- name: Cycle theorangeone.net container
- name: Cycle container
docker_compose:
project_src: /opt/theorangeone.net
pull: true