From c65a9702033348b3e4eaf60b26f4f78a9b1dfb65 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Tue, 13 Dec 2016 17:22:52 +0100 Subject: [PATCH] published binaries --- .gitignore | 5 ----- mailserver/tasks/dovecot.yml | 4 ++-- warehost-api/tasks/main.yml | 4 ++-- warehost-ftp/tasks/main.yml | 4 ++-- warehost-host/tasks/main.yml | 7 +++++-- warehost-web/tasks/main.yml | 4 ++-- 6 files changed, 13 insertions(+), 15 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 45224b7..0000000 --- a/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -mailserver/files/ -warehost-api/files/ -warehost-web/files/ -warehost-host/files/ -warehost-ftp/files/ diff --git a/mailserver/tasks/dovecot.yml b/mailserver/tasks/dovecot.yml index c932e02..1a2047d 100644 --- a/mailserver/tasks/dovecot.yml +++ b/mailserver/tasks/dovecot.yml @@ -8,8 +8,8 @@ notify: restart dovecot # Authentification -- name: Download warehost-auth (TODO current copy) - copy: src=warehost-auth dest=/usr/local/bin/warehost-auth owner=root group=root mode=0755 +- name: Download warehost-auth + get_url: url=https://warehost.sum7.eu/downloads/current/warehost-auth dest=/usr/local/bin/warehost-auth owner=root group=root mode=0755 - name: Configurate authentification template: src=warehost-auth.conf dest=/etc/warehost/auth.conf mode=660 owner=vmail group=vmail diff --git a/warehost-api/tasks/main.yml b/warehost-api/tasks/main.yml index 6379347..1c270ae 100644 --- a/warehost-api/tasks/main.yml +++ b/warehost-api/tasks/main.yml @@ -1,6 +1,6 @@ --- -- name: Download Warehost (TODO current copy) - copy: src=warehost dest=/usr/local/bin/warehost-api owner=root group=root mode=0755 +- 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 - name: Configurate warehost template: src=config.yml dest=/etc/warehost/api.conf owner=warehost mode=0600 diff --git a/warehost-ftp/tasks/main.yml b/warehost-ftp/tasks/main.yml index e889b11..758deeb 100644 --- a/warehost-ftp/tasks/main.yml +++ b/warehost-ftp/tasks/main.yml @@ -1,6 +1,6 @@ --- -- name: Download Warehost-ftp (TODO current copy) - copy: src=warehost-ftp dest=/usr/local/bin/warehost-ftp owner=root group=root mode=0755 +- 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 - name: Create data folder file: path={{warehost_ftp_data_path}} state=directory owner=warehost group={{http_grp}} mode=0770 diff --git a/warehost-host/tasks/main.yml b/warehost-host/tasks/main.yml index 7f42949..49cbbd0 100644 --- a/warehost-host/tasks/main.yml +++ b/warehost-host/tasks/main.yml @@ -1,6 +1,6 @@ --- -- name: Download Warehost-host (TODO current copy) - copy: src=warehost-host dest=/usr/local/bin/warehost-host owner=root group=root mode=0755 +- name: Download Warehost-host + get_url: url=https://warehost.sum7.eu/downloads/current/warehost-host dest=/usr/local/bin/warehost-host owner=root group=root mode=0755 - name: Configurate warehost-host template: src=config.yml dest=/etc/warehost/host.conf owner=warehost mode=0600 @@ -13,6 +13,9 @@ - name: Configurate warehost-host file: path={{warehost_host_web_path}} state=touch owner=warehost group={{http_grp}} mode=0660 +- name: Fix permission on domain folders + file: path=/srv/http/domain state=directory owner=warehost group={{http_grp}} recurse=yes + - name: Install service template: src=warehost-host.{{item}} dest=/lib/systemd/system/warehost-host.{{item}} owner=root mode=644 with_items: diff --git a/warehost-web/tasks/main.yml b/warehost-web/tasks/main.yml index c0c91b2..bab47a3 100644 --- a/warehost-web/tasks/main.yml +++ b/warehost-web/tasks/main.yml @@ -1,6 +1,6 @@ --- -- name: Download Warehost-web (TODO current copy) - copy: src=warehost-web dest=/usr/local/bin/warehost-web owner=root group=root mode=0755 +- 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 - name: Create web folder file: path={{warehost_web_webroot}} state=directory owner=warehost group={{http_grp}} mode=0770