@@ -1,2 +1,3 @@
vsftpd_allowed_users: []
vsftpd_enable_write: no
+vsftpd_enable_access_without_shell: no
@@ -26,3 +26,9 @@
notify: reload vsftpd
- include: userlist.yml
- include: chroot.yml
+- name: grant access to users without shell
+ lineinfile:
+ dest: /etc/shells
+ line: '/bin/false'
+ state: "{{vsftpd_enable_access_without_shell | ternary('present', 'absent')}}"
+ become: yes