add simple nextcloud role

This commit is contained in:
Michael Rennecke 2020-05-14 21:44:26 +02:00
parent 43133af080
commit ce33ca7ccb
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,3 @@
nextcloud_data: /srv/nextcloud.0rpheus.net/html/
nextcloud_version: 16

View File

@ -0,0 +1,19 @@
---
- name: nextcloud data
file:
path: "{{ nextcloud_data }}"
state: directory
recurse: yes
- name: nextcloud container
docker_container:
name: nextcloud.0rpheus.net
image: "nextcloud:{{ nextcloud_version }}"
pull: yes
restart_policy: always
ports:
- 127.0.0.1:2090:80
volumes:
- "{{ nextcloud_data }}:/var/www/html/"