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
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ vsftpd_package }}"
|
|
|
|
state: present
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Configuring vsftp
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "vsftpd.j2"
|
|
|
|
dest: "{{ vsftpd_config_template_path }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0644"
|
|
|
|
become: true
|
|
|
|
notify: restart vsftpd
|
|
|
|
|
|
|
|
- name: Configuring service
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: vsftpd
|
|
|
|
state: "{{ vsftpd_service_state }}"
|
|
|
|
enabled: "{{ vsftpd_service_enabled }}"
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Configure pam for sssd
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "pam.d/vsftpd.j2"
|
|
|
|
dest: "/etc/pam.d/vsftpd"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0644"
|
|
|
|
become: true
|
|
|
|
when: vsftpd_sssd == true
|