diff --git a/webapps/evoadmin-web/files/evolinux.conf.diff b/webapps/evoadmin-web/files/ftp/evolinux.conf.diff similarity index 100% rename from webapps/evoadmin-web/files/evolinux.conf.diff rename to webapps/evoadmin-web/files/ftp/evolinux.conf.diff diff --git a/webapps/evoadmin-web/meta/main.yml b/webapps/evoadmin-web/meta/main.yml new file mode 100644 index 00000000..82440b08 --- /dev/null +++ b/webapps/evoadmin-web/meta/main.yml @@ -0,0 +1,18 @@ +galaxy_info: + author: Evolix + description: Installation of evoadmin-web + + issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues + + license: GPLv2 + + min_ansible_version: 2.2 + + platforms: + - name: Debian + versions: + - jessie + - stretch + +dependencies: + - proftpd diff --git a/webapps/evoadmin-web/tasks/ftp.yml b/webapps/evoadmin-web/tasks/ftp.yml index 83913d01..a78150a1 100644 --- a/webapps/evoadmin-web/tasks/ftp.yml +++ b/webapps/evoadmin-web/tasks/ftp.yml @@ -1,25 +1,12 @@ --- -- name: Verify if proftpd has evolinux config file - stat: - path: /etc/proftpd/conf.d/z-evolinux.conf - register: proftpd_config +- name: patch must be installed + apt: + name: patch + state: installed -- block: - - name: Patch ProFTPd config file - patch: - remote_src: no - src: evolinux.conf.diff - dest: /etc/proftpd/conf.d/z-evolinux.conf - - # Why 440? Because should be edited with ftpasswd. - # So, readonly when opened with vim. - # Then readable by group. - - name: Create /etc/proftpd/vpasswd file in 0440 mode - file: - state: touch - path: /etc/proftpd/vpasswd - mode: "0440" - owner: root - group: root - when: proftpd_config.stat.exists +- name: Patch ProFTPd config file + patch: + remote_src: no + src: ftp/evolinux.conf.diff + dest: /etc/proftpd/conf.d/z-evolinux.conf