From c6e870ffc5ffc7997462b0a835ee6f129f10332b Mon Sep 17 00:00:00 2001 From: Justin Stephenson Date: Wed, 20 Nov 2024 14:14:59 -0500 Subject: [PATCH] Print client install log --- src/ansible/roles/client/tasks/enroll_IPA.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ansible/roles/client/tasks/enroll_IPA.yml b/src/ansible/roles/client/tasks/enroll_IPA.yml index 623aa020..401a6f08 100644 --- a/src/ansible/roles/client/tasks/enroll_IPA.yml +++ b/src/ansible/roles/client/tasks/enroll_IPA.yml @@ -11,9 +11,19 @@ --domain {{ ipa_domain | quote }} \ --principal admin \ --password {{ ipa_password | quote }} + ignore_errors: true args: creates: /etc/ipa/ca.crt +- name: Print log + shell: cat /var/log/ipaclient-install.log + register: out + +- debug: var=out.stdout_lines + +- name: force a failure + command: /bin/false + - name: Stat {{ ipa_keytab }} stat: path: "{{ ipa_keytab }}"