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
|
||||
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
|
||||
- name: Patch ProFTPd config file
|
||||
patch:
|
||||
remote_src: no
|
||||
src: evolinux.conf.diff
|
||||
src: ftp/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
|
||||
|
|
Loading…
Reference in a new issue