From 7d2081ec7f8ffad6f8eae70e8c75d4452996ac6d Mon Sep 17 00:00:00 2001 From: Adam Ruzicka Date: Mon, 13 Jan 2025 09:57:17 -0500 Subject: [PATCH] Fix freeipa_server role Server installation should now pass. Client installation is only run when katello_server_origin is defined. --- roles/freeipa_server/tasks/install_freeipa_server.yml | 4 +++- roles/freeipa_server/tasks/main.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/freeipa_server/tasks/install_freeipa_server.yml b/roles/freeipa_server/tasks/install_freeipa_server.yml index 8b3b83a79..c657d3394 100644 --- a/roles/freeipa_server/tasks/install_freeipa_server.yml +++ b/roles/freeipa_server/tasks/install_freeipa_server.yml @@ -29,4 +29,6 @@ - name: 'Run FreeIPA Install' become: true shell: - cmd: ipa-server-install -U -r {{ freeipa_server_realm }} -p {{ freeipa_server_directory_manager_password }} -a {{ freeipa_server_directory_admin_password }} creates=/etc/krb5.keytab + cmd: ipa-server-install -U -r {{ freeipa_server_realm }} -p {{ freeipa_server_directory_manager_password }} -a {{ freeipa_server_directory_admin_password }} + args: + creates: /etc/krb5.keytab diff --git a/roles/freeipa_server/tasks/main.yml b/roles/freeipa_server/tasks/main.yml index 54f095122..90de1a17d 100644 --- a/roles/freeipa_server/tasks/main.yml +++ b/roles/freeipa_server/tasks/main.yml @@ -1,3 +1,4 @@ --- - include_tasks: install_freeipa_server.yml - include_tasks: install_freeipa_client.yml + when: katello_server_origin is defined