2023-04-16 07:43:27 +00:00
|
|
|
---
|
|
|
|
# tasks file for ansible-role-vsftpd
|
2023-04-16 10:03:09 +00:00
|
|
|
|
|
|
|
- name: Installing packages
|
2024-03-11 19:22:30 +00:00
|
|
|
aur:
|
|
|
|
name: "{{ pureftpd_package }}"
|
2023-04-16 10:03:09 +00:00
|
|
|
state: present
|
|
|
|
become: true
|
2024-03-11 19:22:30 +00:00
|
|
|
become_user: aur_builder
|
2023-04-16 10:03:09 +00:00
|
|
|
|
2024-03-11 19:22:30 +00:00
|
|
|
- name: Configuring pureftpd
|
2023-04-16 10:03:09 +00:00
|
|
|
ansible.builtin.template:
|
2024-03-11 19:22:30 +00:00
|
|
|
src: "pure-ftpd.j2"
|
2023-04-16 10:03:09 +00:00
|
|
|
dest: "{{ vsftpd_config_template_path }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0644"
|
|
|
|
become: true
|
2024-03-11 19:22:30 +00:00
|
|
|
notify: Restart pureftpd
|
2023-04-16 10:03:09 +00:00
|
|
|
|
|
|
|
- name: Configuring service
|
|
|
|
ansible.builtin.service:
|
2024-03-11 19:22:30 +00:00
|
|
|
name: pure-ftpd
|
|
|
|
state: "{{ pureftpd_service_state }}"
|
|
|
|
enabled: "{{ pureftpd_service_enabled }}"
|
2023-04-16 10:03:09 +00:00
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Configure pam for sssd
|
|
|
|
ansible.builtin.template:
|
2024-03-11 19:22:30 +00:00
|
|
|
src: "pam.d/pure-ftpd.j2"
|
|
|
|
dest: "/etc/pam.d/pure-ftpd"
|
2023-04-16 10:03:09 +00:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0644"
|
|
|
|
become: true
|
2024-03-11 19:22:30 +00:00
|
|
|
when: pureftpd_sssd is true
|