dotfiles/roles/yubikey_pam/tasks/install.yml
Matej Focko f8adf14aff
chore: rename ‹yubikey› group of roles
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-12 16:09:16 +01:00

18 lines
497 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: Install pam_yubico on Fedora/EPEL
ansible.builtin.package:
name: pam_yubico
state: present
when: ansible_distribution in [ "AlmaLinux", "CentOS", "Fedora" ]
- name: Enable PPA on Ubuntu
ansible.builtin.apt_repository:
repo: ppa:yubico/stable
state: present
when: ansible_distribution == "Ubuntu"
- name: Install libpam-yubico on Ubuntu
ansible.builtin.package:
name: libpam-yubico
state: present
when: ansible_distribution == "Ubuntu"