Enable Yubikey

This commit is contained in:
Morgan Wattiez 2019-06-22 18:12:13 +02:00
parent 440091481c
commit 620f2aa909
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.retry

View File

@ -0,0 +1,12 @@
---
- hosts: localhost
connection: local
become_method: sudo
become: yes
tasks:
- name: Ensure yubikey is needed for authentication
lineinfile:
path: /etc/pam.d/authorization
regexp: '^auth.*pam_yubico.so.*'
line: "auth required /usr/local/lib/security/pam_yubico.so mode=challenge-response"
insertbefore: "^account required pam_opendirectory.so"