Просмотр исходного кода

added option to grant access to users without shell

Fabian Peter Hammerle 8 лет назад
Родитель
Сommit
ab42fd0b5b
2 измененных файлов с 7 добавлено и 0 удалено
  1. 1 0
      defaults/main.yml
  2. 6 0
      tasks/main.yml

+ 1 - 0
defaults/main.yml

@@ -1,2 +1,3 @@
 vsftpd_allowed_users: []
 vsftpd_enable_write: no
+vsftpd_enable_access_without_shell: no

+ 6 - 0
tasks/main.yml

@@ -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