I am trying to use the ansible-playbook to install the client on CentOS 8. I am getting
the following error:
TASK [ipaclient : Install - Check if one of password or keytabs are set]
I am trying to use the ansible-playbook to install the client on CentOS 8. I am getting
the following error:
TASK [ipaclient : Install - Check if one of password or keytabs are set]
Thanks for using ansible. To answer your question more information is needed. Could you please describe clearly all of the below:
What goal you are trying to achieve.
How you are doing this.
What problems you encounter.
Which commands did you run, and what actual output did you get (copied as plain text - not as screenshots, images, or other binary attachments).
What do the relevant inventory/tasks/playbooks/code/variables look like.
The output of ‘ansible --version’
I am trying to install the the FreeIPA client on CentOS and RHEL 6,7,8 servers.
I am using the ansible-freeipa module https://github.com/freeipa/ansible-freeipa
The only problem I have encountered is the one I pasted regarding the keytabs or otp.
Here is the command I used:
ansible-playbook --ask-vault-pass -i /opt/syseng/automation/ansible/passwd.yml --inventory-file /opt/syseng/automation/ansible/hosts/ansible_hosts /opt/syseng/automation/ansible-freeipa/playbooks/install-client.yml -e "target_servers=hostname001.loc.example.net" --user=user123 -vvvvvv
freeipa inventory file
`
[ipaclients:vars]
ipaadmin_principal=admin
ipaadmin_password=“{{ ipaadmin_password }}”
ipaclient_domain=loc.example.net
ipaclient_realm=LOC.EXAMPLE.NET
#ipaclient_keytab=/tmp/krb5.keytab
#ipaclient_use_otp=yes
#ipaclient_force_join=yes
#ipaclient_kinit_attempts=3
ipaclient_mkhomedir=yes
ipaclient_allow_repair=yes
`
$ ansible --version ansible 2.9.6 config file = /opt/syseng/automation/ansible/ansible.cfg configured module search path = ['/opt/syseng/automation/ansible-freeipa/playbooks/roles/ansible-freeipa/plugins/modules'] ansible python module location = /home/andrew.meyer/.local/lib/python3.6/site-packages/ansible executable location = /home/andrew.meyer/.local/bin/ansible python version = 3.6.8 (default, Nov 21 2019, 19:31:34) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)]
Hope that helps.
Ah OK I see.
In this case it's best to seek help from the author(s) of those roles.
As a start, you could submit an issue at
https://github.com/freeipa/ansible-freeipa/issues
Regards