You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jérémy Lecour ee21973371
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2777|524|2253|2462|:+1: Reference build: <a href="">Evolix » ansible-roles » unstable #223</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
Fully Qualified Collection Name
2 months ago
defaults proftpd: Allow user auth with ssh keys 9 months ago
files proftpd: blank vpasswd if missing 6 years ago
handlers Use FQCN 2 months ago
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2 years ago
tasks Use FQCN 2 months ago
templates proftpd: Fix format of public key files controlled by ansible 6 months ago
tests Add tests for many roles 6 years ago
.kitchen.yml Kitchen: Change base image to evolix/ansible 6 years ago Fix command for generate password with mkpasswd 9 months ago


Installation and basic configuration of ProFTPd


Everything is in the tasks/main.yml file.

Available variables

Main variables are :

  • proftpd_hostname: hostname (default: ansible_hostname)
  • proftpd_fqdn: fully qualified domain name (default: ansible_fqdn)
  • proftpd_default_address : address for the server to listen on (default: [])
  • proftpd_port : port for the control socket (default: 21)

The full list of variables (with default values) can be found in defaults/main.yml.

Accounts management

Proftpd accounts can be maintened with the proftpd_accounts var, it can be set in inventory/host_vars/inventory_hostname :

- { name: 'ftp1', home: '/srv/data/ftp1', uid: 116, gid: 65534 }
- { name: 'ftp2', home: '/srv/data/ftp2', uid: 116, gid: 65534 }

The password will be randomly generated and printed to the screen the first time you run the task.

You can force is value by set the password field with the hashed version of your password.

eg. for "test" password hashed with sha512 :

- { name: 'ftp1', home: '/srv/data/ftp1', uid: 116, gid: 65534, password: '$6$/Yy0b0No3GWh$3ZY1GZFI25eyQDBrANyHw.NFPqPqdg6sCi89nM/aNitmESZ2jGfROveS5xowy.WjX9tMC7.KPoabKPyxOpBJY0' }

For generate the sha512 version of yours password :

printf "test" | mkpasswd --stdin --method=sha-512