Giter Club home page Giter Club logo

ansible-pure-ftpd's People

Contributors

robgmills avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ansible-pure-ftpd's Issues

Template error while templating string: no filter named 'failed'

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.

Requirement pexpect>=3.3

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

Debian 11 bullseye issues

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?

unable to create virtual user

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.