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

@ -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,29 +0,0 @@
- name: Create theorangeone.net directory
file:
path: /opt/theorangeone.net
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install theorangeone.net compose file
template:
src: files/theorangeone.net/docker-compose.yml
dest: /opt/theorangeone.net/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
register: compose_file
become: true
- name: Cycle theorangeone.net container
docker_compose:
project_src: /opt/theorangeone.net
pull: true
remove_orphans: true
remove_volumes: true
state: "{{ item }}"
when: compose_file.changed
loop:
- absent
- present