ansible-role-pureftpd/tasks/main.yml
2024-03-11 20:22:30 +01:00

37 lines
791 B
YAML

---
# tasks file for ansible-role-vsftpd
- name: Installing packages
aur:
name: "{{ pureftpd_package }}"
state: present
become: true
become_user: aur_builder
- name: Configuring pureftpd
ansible.builtin.template:
src: "pure-ftpd.j2"
dest: "{{ vsftpd_config_template_path }}"
owner: root
group: root
mode: "0644"
become: true
notify: Restart pureftpd
- name: Configuring service
ansible.builtin.service:
name: pure-ftpd
state: "{{ pureftpd_service_state }}"
enabled: "{{ pureftpd_service_enabled }}"
become: true
- name: Configure pam for sssd
ansible.builtin.template:
src: "pam.d/pure-ftpd.j2"
dest: "/etc/pam.d/pure-ftpd"
owner: root
group: root
mode: "0644"
become: true
when: pureftpd_sssd is true