Skip to content

Commit

Permalink
fix idempotency with vsftpd pamd file (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: xat <descamps.jeremy@gmail.com>
  • Loading branch information
jeremydescamps and Xat59 authored Apr 13, 2023
1 parent a2993b7 commit e4bbf45
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tasks/virtual-users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
notify: "restarting specific {{ vsftpd_systemd_service_name }} service"

- name: configuring pam for default vsftpd virtual users 1/2
pamd:
community.general.pamd:
name: vsftpd
new_type: auth
new_type: account
new_control: sufficient
new_module_path: pam_userdb.so
module_arguments: 'db=/etc/vsftpd/login'
Expand All @@ -52,16 +52,16 @@
when: vsftpd_systemd_service_name == 'vsftpd'

- name: configuring pam for default vsftpd virtual users 2/2
pamd:
community.general.pamd:
name: vsftpd
new_type: account
new_type: auth
new_control: sufficient
new_module_path: pam_userdb.so
module_arguments: 'db=/etc/vsftpd/login'
state: before
type: session
control: optional
module_path: pam_keyinit.so
type: account
control: sufficient
module_path: pam_userdb.so
when: vsftpd_systemd_service_name == 'vsftpd'

- name: "configuring pam for {{ vsftpd_systemd_service_name }} \
Expand Down

0 comments on commit e4bbf45

Please sign in to comment.