Make it a task

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-12-20 05:16:33 +00:00
parent a16153d7ad
commit ab40af84d1
2 changed files with 6 additions and 8 deletions

View file

@ -1,7 +0,0 @@
########################
# Handlers for IPA stuff
#
# This is used to combine the IPA keytabs for local host and id.fp.o
- name: combine IPA http keytabs
shell: printf "%b" "read_kt /etc/httpd/conf/ipa.keytab\nread_kt /etc/krb5.HTTP_id{{env_suffix}}.fedoraproject.org.keytab\nwrite_kt /etc/krb5.HTTP_id{{env_suffix}}.fedoraproject.org.keytab.combined" | ktutil

View file

@ -52,7 +52,12 @@
handlers:
- include: "{{ handlers }}/restart_services.yml"
- include: "{{ handlers }}/ipa.yml"
tasks:
- name: Combine IPA keytabs
shell: printf "%b" "read_kt /etc/httpd/conf/ipa.keytab\nread_kt /etc/krb5.HTTP_id{{env_suffix}}.fedoraproject.org.keytab\nwrite_kt /etc/krb5.HTTP_id{{env_suffix}}.fedoraproject.org.keytab.combined" | ktutil
tags:
- krb5
- name: do base role once more to revert any resolvconf changes
hosts: ipa:ipa-stg