You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: Ensure PAM SSH agent is installed (dnf)ansible.builtin.dnf:
name: pam_ssh_agent_authstate: presentwhen: ansible_facts['pkg_mgr'] | lower == 'dnf'
- name: Ensure PAM SSH agent is installed (yum)ansible.builtin.yum:
name: pam_ssh_agent_authstate: presentwhen: ansible_facts['pkg_mgr'] | lower == 'yum'
- name: Add the authorized_keys_command to /etc/pam.d/sudoansible.builtin.lineinfile:
path: /etc/pam.d/sudoregexp: '^auth\s+sufficient\s+pam_ssh_agent_auth\.so\s+authorized_keys_command=/usr/bin/sss_ssh_authorizedkeys$'insertafter: '^#%PAM-1.0$'line: 'auth sufficient pam_ssh_agent_auth.so authorized_keys_command=/usr/bin/sss_ssh_authorizedkeys'backup: true
- name: Create sudoers drop-in file for SSH agent forwardingansible.builtin.copy:
dest: /etc/sudoers.d/ssh_agent_forwardcontent: | # This file is managed by Ansible Defaults env_keep += "SSH_AUTH_SOCK"owner: rootgroup: rootmode: '0440'validate: '/usr/sbin/visudo -csf %s'
The text was updated successfully, but these errors were encountered:
EmptyByte
changed the title
[ipasmartcard_client] Does not include tuning of PAM SSH agent
[ipasmartcard_client] Does not include configuration of the PAM SSH agent
Jun 22, 2024
EmptyByte
changed the title
[ipasmartcard_client] Does not include configuration of the PAM SSH agent
[ipasmartcard_client] Role does not include configuration of the PAM SSH agent
Jun 22, 2024
The role to setup
ipasmartcard_client
does not handle the installation and configuration of PAM SSH agentRefer to: Setting up the PAM module for sudo
The text was updated successfully, but these errors were encountered: