This repository has been archived on 2024-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
ansible/roles/common/tasks/2fa.yml

12 lines
383 B
YAML

# 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
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.