mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
Added playbook to enable Touch ID authentication for 'sudo', fixed Ansible's KB
This commit is contained in:
19
ansible/touchid.enable-for-sudo.yml
Normal file
19
ansible/touchid.enable-for-sudo.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Enable Touch ID for sudo authentication in the terminal
|
||||
tags:
|
||||
- configuration
|
||||
- enable
|
||||
- sudo
|
||||
- terminal
|
||||
- touch-id
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Enable Touch ID's PAM modules
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/pam.d/sudo
|
||||
line: 'auth sufficient pam_tid.so'
|
||||
insertafter: '^# sudo: auth account password session$'
|
||||
mode: 'ugo=r'
|
||||
backup: true
|
||||
Reference in New Issue
Block a user