37 lines
791 B
YAML
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
|