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