forked from evolix/ansible-roles
evoadmin-web depends on proftpd
This commit is contained in:
parent
3a34a78045
commit
89fe1561b8
18
webapps/evoadmin-web/meta/main.yml
Normal file
18
webapps/evoadmin-web/meta/main.yml
Normal file
|
@ -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
|
|
@ -1,25 +1,12 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Verify if proftpd has evolinux config file
|
- name: patch must be installed
|
||||||
stat:
|
apt:
|
||||||
path: /etc/proftpd/conf.d/z-evolinux.conf
|
name: patch
|
||||||
register: proftpd_config
|
state: installed
|
||||||
|
|
||||||
- block:
|
- name: Patch ProFTPd config file
|
||||||
- name: Patch ProFTPd config file
|
patch:
|
||||||
patch:
|
remote_src: no
|
||||||
remote_src: no
|
src: ftp/evolinux.conf.diff
|
||||||
src: evolinux.conf.diff
|
dest: /etc/proftpd/conf.d/z-evolinux.conf
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in a new issue