#!/bin/sh dns={{ dns[0] }} ldap_user={{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="ldap_user") }} ttl=10 kinit -k -t /etc/krb5.keytab "${ldap_user}" nsupdate -g <