robgmills / ansible-pure-ftpd Goto Github PK
View Code? Open in Web Editor NEWAn Ansible role to set up a Pure-FTPd server
An Ansible role to set up a Pure-FTPd server
I faced the following error while setting up a server using this role:
fatal: [194.182.166.216]: FAILED! => {"msg": "The conditional check '(r_userexists|failed) or (not r_passwd.stat.exists)' failed. The error was: template error while templating string: no filter named 'failed'. String: {% if (r_userexists|failed) or (not r_passwd.stat.exists) %} True {% else %} False {% endif %}\n\nThe error appears to be in 'pure-ftpd/tasks/virtual-user.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create virtual FTP user {{ item.name }}\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
I believe the write way to write the conditionals is:
r_userexists is failed
and
r_userexists is succeeded
I'll create a PR for this.
Just ran into this on jessie:
"Insufficient version of pexpect installed (3.2), this module requires pexpect>=3.3......
Please add it to the requirements
Hi, thanks for this role! Unfortunatly this package seems to be incompatible with debian 11 bullseye:
TASK [robgmills.pure-ftpd : Ensure requisite apt packages are installed.] ******
changed: [svw-back-06] => (item=pure-ftpd)
failed: [svw-back-06] (item=python-pip) => {"ansible_loop_var": "item", "changed": false, "item": "python-pip", "msg": "No package matching 'python-pip' is available"}
ok: [svw-back-06] => (item=openssl)
Are you able to fix it?
Hello,
many thanks for your role, it's very useful. However, I've got an error and I don't understand it. I'm new to Ansible and it's a little bit difficult for me.
I'm trying to launch playbook with these data:
pure_ftpd_vusers:
- { name: "myname", password: "mypass", dir: "/var/www/mydir" }
And when I run this command:
ansible-playbook -u root -i hosts playbook.yml
I got this error:
TASK [community/debian-pure-ftpd : Check if virtual FTP user myuser exists] ***
fatal: [mytest]: FAILED! => {"changed": true, "cmd": ["pure-pw", "show", "myuser"], "delta": "0:00:00.011986", "end": "2016-09-16 11:42:35.379905", "failed": true, "rc": 16, "start": "2016-09-16 11:42:35.367919", "stderr": "Unable to fetch info about user [myuser] in file [/etc/pure-ftpd/pureftpd.passwd]", "stdout": "", "stdout_lines": [], "warnings": []}
Can you tell me what is going please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.