Skip to content

Commit

Permalink
Print client install log
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-stephenson committed Nov 21, 2024
1 parent e6b1619 commit b69e261
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions src/ansible/roles/client/tasks/enroll_IPA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit b69e261

Please sign in to comment.