ansible/roles/common/tasks/2fa.yml

12 lines
383 B
YAML
Raw Normal View History

2023-07-11 19:58:56 +00:00
# This will add script to run google-authenticator for users to set up 2FA
---
- name: Set 2FA
copy:
src: ../files/usr/local/bin/setup-2factor
dest: /usr/local/bin/setup-2factor
owner: root
group: root
2023-07-11 20:26:44 +00:00
mode: 0755
# last line of ../files/etc/pam.d/sshd will need to be copied to /etc/pam.d/sshd.
# Decided it to risky to automatically have ansible add that.