ftp-server works now

This commit is contained in:
Martin Geno 2016-12-20 12:14:13 +01:00
parent c65a970203
commit 28f344571e
7 changed files with 6 additions and 9 deletions

View File

@ -1,6 +1,7 @@
---
- name: Download Warehost
get_url: url=https://warehost.sum7.eu/downloads/current/warehost-api dest=/usr/local/bin/warehost-api owner=root group=root mode=0755
notify: restart warehost-api
- name: Configurate warehost
template: src=config.yml dest=/etc/warehost/api.conf owner=warehost mode=0600
@ -15,7 +16,6 @@
- name: Enable warehost
service: name=warehost-api state=started enabled=yes
- name: Configurate per nginx
include: nginx.yml
when: warehost_webserver_type == "nginx"

View File

@ -1,7 +1,7 @@
---
warehost_db_host: localhost
warehost_ftp_port: 21
warehost_ftp_data_path: /srv/ftp
warehost_ftp_own_path: /srv/ftp
warehost_ftp_host_path: /srv/http/domain
warehost_ftp_web_path: /srv/http/web
http_grp: http

View File

@ -1,9 +1,10 @@
---
- name: Download Warehost-ftp
get_url: url=https://warehost.sum7.eu/downloads/current/warehost-ftp dest=/usr/local/bin/warehost-ftp owner=root group=root mode=0755
notify: restart warehost-ftp
- name: Create data folder
file: path={{warehost_ftp_data_path}} state=directory owner=warehost group={{http_grp}} mode=0770
file: path={{warehost_ftp_own_path}} state=directory owner=warehost group={{http_grp}} mode=0770
- name: Configurate warehost
template: src=config.yml dest=/etc/warehost/ftp.conf owner=warehost mode=0600

View File

@ -4,6 +4,6 @@ log:
path: /var/log/warehost/ftp.log
databasedebug: false
port: {{warehost_ftp_port}}
data: {{warehost_ftp_data_path}}/%d/
own: {{warehost_ftp_own_path}}/%d/
host: {{warehost_ftp_host_path}}/%s/
web: {{warehost_ftp_web_path}}/%d/

View File

@ -1,6 +1,3 @@
---
- name: reload daemon-reload
command: systemctl daemon-reload
- name: restart warehost-host
service: name=warehost-host.timer state=restarted

View File

@ -4,11 +4,9 @@
- name: Configurate warehost-host
template: src=config.yml dest=/etc/warehost/host.conf owner=warehost mode=0600
notify: restart warehost-host
- name: Configurate host template
template: src={{warehost_host_web_type}}.conf dest=/etc/warehost/host-web.tmpl owner=warehost mode=0600
notify: restart warehost-host
- name: Configurate warehost-host
file: path={{warehost_host_web_path}} state=touch owner=warehost group={{http_grp}} mode=0660

View File

@ -1,6 +1,7 @@
---
- name: Download Warehost-web
get_url: url=https://warehost.sum7.eu/downloads/current/warehost-web dest=/usr/local/bin/warehost-web owner=root group=root mode=0755
notify: restart warehost-web
- name: Create web folder
file: path={{warehost_web_webroot}} state=directory owner=warehost group={{http_grp}} mode=0770