-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathproftpd.yml
More file actions
34 lines (30 loc) · 918 Bytes
/
proftpd.yml
File metadata and controls
34 lines (30 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- hosts: galaxyservers
name: apt update, python, pip
become: true
become_user: root
pre_tasks:
- ansible.builtin.apt:
name:
- python3-pip
- python-is-python3
update_cache: yes
when: ansible_os_family == 'Debian'
- name: Install Dependencies
package:
name: ['acl', 'bzip2', 'git', 'make', 'tar', 'proftpd-mod-ldap']
roles:
- galaxyproject.proftpd
post_tasks:
- name: Check if ProFTPd LDAP config exists
stat:
path: "templates/{{ inventory_hostname }}/config/proftpd_ldap.conf.j2"
register: proftpd_ldap_config
- name: Configure ProFTPd LDAP option
template:
src: "templates/{{ inventory_hostname }}/config/proftpd_ldap.conf.j2"
dest: "{{ proftpd_config_include_dir }}/06_ldap.conf"
backup: yes
when: proftpd_ldap_config.stat.exists
notify:
- reload proftpd