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.
31 lines
728 B
YAML
31 lines
728 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
tasks:
|
|
- name: "Include geekoops-pureftpd"
|
|
include_role:
|
|
name: "geekoops-pureftpd"
|
|
## Setup test enviroment
|
|
- name: Enable firewall
|
|
systemd:
|
|
name: firewalld
|
|
state: started
|
|
enabled: true
|
|
# Test file 1 is accessible (0754), test file 2 not (0750)
|
|
- name: Deploy test file
|
|
copy:
|
|
content: |
|
|
Happy test file
|
|
dest: "{{ftp_dir}}/testfile.txt"
|
|
group: "root"
|
|
owner: "root"
|
|
mode: 0754
|
|
- name: Deploy secrets test file
|
|
copy:
|
|
content: |
|
|
Password: 12345
|
|
dest: "{{ftp_dir}}/secrets.txt"
|
|
group: "root"
|
|
owner: "root"
|
|
mode: 0750
|