Browse Source

Add parameter create_home for FTP accounts (to create or not home directory)

Emmanuel Bouthenot 4 năm trước cách đây
mục cha
commit
3e8d030857
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      roles/ftpserver/tasks/pure-ftpd.yml

+ 1 - 1
roles/ftpserver/tasks/pure-ftpd.yml

@@ -95,7 +95,7 @@
     mode: 0755
     state: 'directory'
   with_items: '{{ ftp_accounts }}'
-  when: ftp_accounts|length > 0
+  when: ftp_accounts|length > 0 and (item.create_home is not defined or (item.create_home is defined and item.create_home))
   tags:
     - 'ftp'
     - 'pure-ftpd'