geekoops-pureftpd/tasks/main.yml
Felix Niederwanger 88b1306386
Revive the role
Update the role to Leap 15.3 and 15.4 and switch the molecule test from
using foreign images to building the test images using custom
Dockerfiles.
2022-06-27 15:30:31 +02:00

33 lines
791 B
YAML

---
# tasks file for geekoops-pureftpd
# Distribution specific vars are ALWAYS needed, so don't forget the tags here
- name: include distribution specific vars
include_vars: "{{ansible_distribution}}_{{ansible_distribution_version}}.yml"
tags: ['ftp']
- name: Ensure PureFTPd is installed
package:
name: "{{ packages }}"
state: present
tags: ['ftp']
- name: Configure PureFTPd
template:
src: pure-ftpd.conf.j2
dest: /etc/pure-ftpd/pure-ftpd.conf
owner: root
group: root
mode: 0744
notify: restart pureftpd
tags: ['ftp']
- name: Ensure PureFTPd service is started and enabled
systemd:
name: "{{pureftpd_service}}"
state: started
enabled: true
tags: ['ftp', 'systemd']
- include_tasks: firewall.yml
when: config_firewall == true