Sample Header Ad - 728x90

kinit: invalid UID in persistent keyring name while getting default ccache while using Ansible

3 votes
1 answer
5481 views
Let me start with a short description: Target host: RHEL7, kernel 3.10, Python2.7 On the target host, there is a perl script (run by a particular user) which, among others, does stuff like: kdestroy -A kinit user@domain -kt path_to_keytab While on the host I can perform (as the 'scriptrunner' user) all commands without error. Yet, while using ansible I get 'kinit: invalid UID in persistent keyring name while getting default ccache' error. The playbook is run from AnsibleTower with credentials using 'sudo' escalation mode and playbook itself uses become: yes and become_user: scriptrunner so the user is the same when running the commands from terminal. I have tried running commands with command module, just command: /bin/kdestory -A and command /bin/kinit someuser@domain -kt path_to_keytab. I have also tried running the whole script as: command: /bin/bash -c -l thescript.sh. the result is always the same. Why so? Any Ideas?
Asked by just_a_noob (101 rep)
Aug 8, 2022, 10:51 AM
Last activity: Oct 23, 2024, 10:03 AM