ansible/roles/howdy/tasks/main.yml

42 lines
939 B
YAML
Raw Normal View History

2021-11-16 15:23:42 +00:00
---
- name: Install dlib
dnf:
name:
- python3-dlib
- pam_python
state: present
become: yes
2024-02-02 15:40:15 +00:00
- name: Enable copr principis/howdy
2021-11-16 15:23:42 +00:00
community.general.copr:
2024-02-02 15:40:15 +00:00
name: principis/howdy
state: enabled
2021-11-16 15:23:42 +00:00
become: yes
- name: Install howdy
dnf:
name: howdy
state: present
become: yes
2024-02-02 15:40:15 +00:00
- name: Configure video device for Howdy
replace:
path: /lib64/security/howdy/config.ini
regexp: '(^device_path\s=\s)(.*)$'
replace: '\1{{ video_device }}'
backup: yes
become: yes
- name: Configure Howdy for sudo
ansible.builtin.lineinfile:
path: /etc/pam.d/sudo
line: "auth sufficient pam_python.so /lib64/security/howdy/pam.py"
become: yes
- name: Configure Howdy for Gnome login
ansible.builtin.lineinfile:
path: /etc/pam.d/gdm-password
insertafter: 'pam_selinux_permit.so'
line: "auth sufficient pam_python.so /lib64/security/howdy/pam.py"
become: yes