evoadmin-web depends on proftpd

This commit is contained in:
Jérémy Lecour 2017-10-07 21:45:46 +02:00
parent 3a34a78045
commit 89fe1561b8
3 changed files with 27 additions and 22 deletions

View 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

View file

@ -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