mirror of
https://github.com/pigmonkey/spark.git
synced 2026-07-21 02:25:51 +00:00
control fingerprint auth with a variable
This commit is contained in:
parent
c460c11778
commit
ea848fc725
4 changed files with 16 additions and 7 deletions
|
|
@ -102,3 +102,5 @@ bootloader: grub
|
|||
|
||||
postgresql:
|
||||
enable: True
|
||||
|
||||
fingerprint: False
|
||||
|
|
|
|||
|
|
@ -25,15 +25,12 @@
|
|||
tags:
|
||||
- fingerprint
|
||||
|
||||
- name: Enable sudo fingerprint authentication
|
||||
lineinfile: dest=/etc/pam.d/sudo
|
||||
state=present
|
||||
insertbefore=BOF
|
||||
line="auth sufficient pam_fprintd.so"
|
||||
- name: Push sudo authentication file
|
||||
template: src=pam.d/sudo.j2 dest=/etc/pam.d/sudo
|
||||
tags:
|
||||
- fingerprint
|
||||
|
||||
- name: Enable i3lock fingerprint authentication
|
||||
copy: src=i3lock dest=/etc/pam.d/i3lock
|
||||
- name: Push i3lock authentication file
|
||||
template: src=pam.d/i3lock.j2 dest=/etc/pam.d/i3lock
|
||||
tags:
|
||||
- fingerprint
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
{% if fingerprint == True %}
|
||||
auth required pam_env.so
|
||||
auth sufficient pam_unix.so try_first_pass likeauth nullok
|
||||
auth sufficient pam_fprintd.so
|
||||
{% else %}
|
||||
auth include system-auth
|
||||
{% endif %}
|
||||
6
roles/thinkpad/templates/pam.d/sudo.j2
Normal file
6
roles/thinkpad/templates/pam.d/sudo.j2
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{% if fingerprint == True %}
|
||||
auth sufficient pam_fprintd.so
|
||||
{% endif %}
|
||||
auth include system-auth
|
||||
account include system-auth
|
||||
session include system-auth
|
||||
Loading…
Add table
Add a link
Reference in a new issue