This role allows to configure IPA clients for Smart Card authentication.
Note: The ansible-freeipa smartcard client role requires an enrolled IPA client.
- Client setup for Smart Card authentication
FreeIPA versions 4.5 and up are supported by this role.
- RHEL/CentOS 7.6+
- CentOS Stream 8+
- Fedora 26+
Controller
- Ansible version: 2.14+
Node
- Supported FreeIPA version (see above)
- Supported distribution (needed for package installation only, see above)
- Enrolled IPA client
Only the enablement of smartcards is supported by the role, there is no disablement.
Example inventory file with IPA clients:
[ipaclients]
ipaclient1.example.com
ipaclient2.example.com
[ipaclients:vars]
ipaadmin_password=SomeADMINpassword
ipasmartcard_client_ca_certs=/etc/ipa/ca.crt
Example playbook to setup smartcard for the IPA clients using admin password and ipasmartcard_client_ca_certs from inventory file:
---
- name: Playbook to setup smartcard for IPA clients
hosts: ipaclients
become: true
roles:
- role: ipasmartcard_client
state: present
The playbooks needed to setup smartcard for the IPA clients is part of the repository in the playbooks folder.
install-smartcard-clients.yml
Please remember to link or copy the playbooks to the base directory of ansible-freeipa if you want to use the roles within the source archive.
ansible-playbook -v -i inventory/hosts install-smartcard-clients.yml
This will setup the clients for smartcard use.
Variable | Description | Required |
---|---|---|
ipaadmin_principal |
The kerberos principal used for admin. Will be set to admin if not set. (string) |
no |
ipaadmin_password |
The password for the IPA admin user. As an alternative an admin user keytab can be used instead with ipaadmin_keytab . (string) |
yes |
ipaadmin_keytab |
The admin keytab as an alternative to ipaadmin_password . (string) |
no |
ipasmartcard_client_ca_certs |
The CA certificates for smartcard use. If ipasmartcard_client_ca_certs is not set, but ipasmartcard_server_ca_certs , then ipasmartcard_server_ca_certs will be used. |
yes |
Thomas Woerner