This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-27 10:06:35 +01:00
|
|
|
---
|
|
|
|
- name: Download Warehost-ftp (TODO current copy)
|
|
|
|
copy: src=warehost-ftp dest=/usr/local/bin/warehost-ftp owner=root group=root mode=0755
|
|
|
|
|
|
|
|
- name: Create data folder
|
2016-12-07 11:49:05 +01:00
|
|
|
file: path={{warehost_ftp_data_path}} state=directory owner=warehost group={{http_grp}} mode=0770
|
2016-11-27 10:06:35 +01:00
|
|
|
|
|
|
|
- name: Configurate warehost
|
|
|
|
template: src=config.yml dest=/etc/warehost/ftp.conf owner=warehost mode=0600
|
|
|
|
notify: restart warehost-ftp
|
|
|
|
|
|
|
|
- name: Install service
|
|
|
|
template: src=warehost-ftp.unit dest=/lib/systemd/system/warehost-ftp.service owner=root mode=644
|
|
|
|
notify:
|
|
|
|
- reload daemon-reload
|
|
|
|
- restart warehost-ftp
|
|
|
|
|
|
|
|
- name: Enable warehost
|
|
|
|
service: name=warehost-ftp state=started enabled=yes
|