diff --git a/roles/certbot_dns/tasks/main.yml b/roles/certbot_dns/tasks/main.yml index 4604dbc..f60cb12 100644 --- a/roles/certbot_dns/tasks/main.yml +++ b/roles/certbot_dns/tasks/main.yml @@ -28,8 +28,8 @@ command: ktutil responses: '.*:': - - 'add_entry -password -p {{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="ldap_user") }} -k 1 -e aes256-cts-hmac-sha1-96' - - '{{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="ldap_pass") }}' + - 'add_entry -password -p {{ lookup("passwordstore", "vm/"~inventory_hostname, subkey="ldap_user") }} -k 1 -e aes256-cts-hmac-sha1-96' + - '{{ lookup("passwordstore", "vm/"~inventory_hostname, subkey="ldap_pass") }}' - 'write_kt /etc/krb5.keytab' - 'exit' args: diff --git a/roles/certbot_dns/templates/certbot-auth.j2 b/roles/certbot_dns/templates/certbot-auth.j2 index 445a361..f0905e8 100644 --- a/roles/certbot_dns/templates/certbot-auth.j2 +++ b/roles/certbot_dns/templates/certbot-auth.j2 @@ -1,7 +1,7 @@ #!/bin/sh dns={{ dns[0] }} -ldap_user={{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="ldap_user") }} +ldap_user={{ lookup("passwordstore", "vm/"~inventory_hostname, subkey="ldap_user") }} ttl=10 kinit -k -t /etc/krb5.keytab "${ldap_user}" diff --git a/roles/certbot_dns/templates/certbot-cleanup.j2 b/roles/certbot_dns/templates/certbot-cleanup.j2 index 8115664..2569b0e 100644 --- a/roles/certbot_dns/templates/certbot-cleanup.j2 +++ b/roles/certbot_dns/templates/certbot-cleanup.j2 @@ -1,7 +1,7 @@ #!/bin/sh dns={{ dns[0] }} -ldap_user={{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="ldap_user") }} +ldap_user={{ lookup("passwordstore", "vm/"~inventory_hostname, subkey="ldap_user") }} kinit -k -t /etc/krb5.keytab "${ldap_user}" nsupdate -g <