23 lines
463 B
YAML
23 lines
463 B
YAML
---
|
|
- name: Update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
|
|
- name: Install proftpd package
|
|
ansible.builtin.apt:
|
|
name: proftpd
|
|
state: present
|
|
|
|
- name: Ensure proftpd is enabled and started
|
|
ansible.builtin.service:
|
|
name: proftpd
|
|
state: started
|
|
enabled: true
|
|
become: true
|
|
|
|
- name: Allow FTP through UFW firewall (if UFW is enabled)
|
|
community.general.ufw:
|
|
rule: allow
|
|
port: 21
|
|
proto: tcp
|
|
ignore_errors: false |