36 lines
759 B
YAML
36 lines
759 B
YAML
---
|
|
# tasks file for ansible-role-vsftpd
|
|
|
|
- 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
|