ansible-role-vsftpd/tasks/main.yml
2023-04-16 12:03:09 +02:00

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