adapted pure-ftpd by robgmills

This commit is contained in:
Fabio Sinibaldi 2025-11-11 14:29:12 +01:00
parent 0d3d6eb22e
commit 28b50a0bac
2 changed files with 5 additions and 4 deletions

View File

@ -316,7 +316,7 @@ host_key_checking=False
;inject_facts_as_vars=True ;inject_facts_as_vars=True
# (string) Path to the Python interpreter to be used for module execution on remote targets, or an automatic discovery mode. Supported discovery modes are ``auto`` (the default), ``auto_silent``, ``auto_legacy``, and ``auto_legacy_silent``. All discovery modes employ a lookup table to use the included system Python (on distributions known to include one), falling back to a fixed ordered list of well-known Python interpreter locations if a platform-specific default is not available. The fallback behavior will issue a warning that the interpreter should be set explicitly (since interpreters installed later may change which one is used). This warning behavior can be disabled by setting ``auto_silent`` or ``auto_legacy_silent``. The value of ``auto_legacy`` provides all the same behavior, but for backward-compatibility with older Ansible releases that always defaulted to ``/usr/bin/python``, will use that interpreter if present. # (string) Path to the Python interpreter to be used for module execution on remote targets, or an automatic discovery mode. Supported discovery modes are ``auto`` (the default), ``auto_silent``, ``auto_legacy``, and ``auto_legacy_silent``. All discovery modes employ a lookup table to use the included system Python (on distributions known to include one), falling back to a fixed ordered list of well-known Python interpreter locations if a platform-specific default is not available. The fallback behavior will issue a warning that the interpreter should be set explicitly (since interpreters installed later may change which one is used). This warning behavior can be disabled by setting ``auto_silent`` or ``auto_legacy_silent``. The value of ``auto_legacy`` provides all the same behavior, but for backward-compatibility with older Ansible releases that always defaulted to ``/usr/bin/python``, will use that interpreter if present.
interpreter_python=auto_silent interpreter_python=auto
# (boolean) If 'false', invalid attributes for a task will result in warnings instead of errors. # (boolean) If 'false', invalid attributes for a task will result in warnings instead of errors.
;invalid_task_attribute_failed=True ;invalid_task_attribute_failed=True

View File

@ -3,13 +3,14 @@
apt: update_cache=yes cache_valid_time=86400 apt: update_cache=yes cache_valid_time=86400
- name: Ensure requisite apt packages are installed. - name: Ensure requisite apt packages are installed.
become: True
apt: name={{ item }} state=present default_release={{ pureftpd_default_release }} apt: name={{ item }} state=present default_release={{ pureftpd_default_release }}
with_items: with_items:
- pure-ftpd - pure-ftpd
- python-pip - python3-pip
- openssl - openssl
- name: Install pexpect - name: Install pexpect
pip: community.general.pipx:
name: "pexpect" name: "python3-pexpect"
state: present state: present