mirror of
https://github.com/GeekOops/geekoops-pureftpd.git
synced 2024-05-19 22:12:23 +00:00
Felix Niederwanger
88b1306386
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.
33 lines
791 B
YAML
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
|