From b69e261db4c994828ff2ccac8dfd86f6887ed92e 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 --- .github/workflows/build.yml | 3 +++ src/ansible/roles/client/tasks/enroll_IPA.yml | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cda3a4a1..6c64446f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,6 +49,9 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 + - name: Setup upterm session + uses: lhotari/action-upterm@v1 + - name: Install dependencies uses: ./.github/actions/install-dependencies with: diff --git a/src/ansible/roles/client/tasks/enroll_IPA.yml b/src/ansible/roles/client/tasks/enroll_IPA.yml index 623aa020..816ee001 100644 --- a/src/ansible/roles/client/tasks/enroll_IPA.yml +++ b/src/ansible/roles/client/tasks/enroll_IPA.yml @@ -5,15 +5,26 @@ ipa_password: "{{ hostvars[groups.ipa.0].ansible_password | default(service.ipa.password) }}" ipa_keytab: /enrollment/{{ hostvars[groups.ipa.0]['ipa_domain'] }}.keytab +- name: Pause for a long time + pause: + seconds: 3600 + - name: Run ipa-client-install shell: | /usr/sbin/ipa-client-install --unattended --no-ntp \ --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: Stat {{ ipa_keytab }} stat: path: "{{ ipa_keytab }}"