Версия пакета: ansible-freeipa-1.12.0-alt1 Шаги воспроизведения: (Требуются два стенда: клиент и сервер) Настройка сервера: # echo "<SERVER_IP> ipa.example.test ipa" >> /etc/hosts # hostnamectl set-hostname ipa.example.test && reboot # apt-get install -y freeipa-server # ipa-server-install --domain=example.test --realm=EXAMPLE.TEST --ds-password=DMPassword1 --admin-password=12345678 --hostname=ipa.example.test -U Настройка клиента: # echo "<SERVER_IP> ipa.example.test ipa" >> /etc/hosts # echo "<CLIENT_IP> comp01.example.test comp01" >> /etc/host # hostnamectl set-hostname comp01.example.test && reboot # apt-get install -y openssh-askpass-common ansible-freeipa # control sshd-permit-root-login enabled # systemctl restart sshd # ssh-copy-id root@comp01.example.test # mkdir -p ~/ipa-test/inventory Файл ~/ipa-test/inventory/hosts: [ipaclients] comp01.example.test [ipaservers] ipa.example.test [ipaclients:vars] ansible_user=root ipaclient_no_ntp=yes ipaclient_domain=example.test ipaclient_realm=EXAMPLE.TEST ipaadmin_principal=admin ipaadmin_password=12345678 Файл ~/ipa-test/install-client.yml: --- - name: Playbook to configure IPA clients with username/password hosts: ipaclients become: true roles: - role: ipaclient state: present Для обхода ошибки https://bugzilla.altlinux.org/58433 применить изменения позволяющие пропустить этап NTP: # sed -i 's/ - name: Install - Configure NTP/ - name: Install - Configure NTP\n when: not ipaclient_no_ntp | bool/' /usr/share/ansible/roles/ipaclient/tasks/install.yml Запуск playbook: # ansible-playbook -v -i inventory/hosts install-client.yml Ожидаемый результат: успешная настройка клиента FreeIPA Фактический результат: [ERROR]: Task failed: Module failed: ALTLinuxTaskNamespace.modify_nsswitch_pam_stack() missing 1 required positional argument: 'fstore' Origin: /usr/share/ansible/roles/ipaclient/tasks/install.yml:355:7 353 not result_ipaclient_test_keytab.ca_crt_exists 354 355 - name: Install - Create IPA NSS database ^ column 7 fatal: [comp01.example.test]: FAILED! => {"changed": false, "msg": "Task failed: Module failed: ALTLinuxTaskNamespace.modify_nsswitch_pam_stack() missing 1 required positional argument: 'fstore'"}
https://packages.altlinux.org/ru/tasks/413577