srv-stage/pure-ftpd.yml
2025-01-19 20:23:14 +01:00

27 lines
569 B
YAML

---
- name: install PureFtpd
yum:
name: pure-ftpd
state: installed
- name: config Pureftpd
copy:
src: "pure-ftpd/{{ item }}"
dest: "/etc/pure-ftpd/{{ item}}"
with_items:
- pure-ftpd.conf
- name: config ldap Pureftpd
template:
src: "pure-ftpd/{{ item }}.j2"
dest: "/etc/pure-ftpd/{{ item}}"
with_items:
- pureftpd-ldap.conf
notify: restart_pure-ftpd
- name: start and enable the pure-ftp service
systemd_service:
state: started
name: pure-ftpd
enabled: true