From 18a7e85389ecdb95a7bf6c6a1206fe6ea574558d Mon Sep 17 00:00:00 2001 From: Francis Kayiwa Date: Mon, 25 Nov 2024 07:02:53 -0500 Subject: [PATCH] we cannot join a domain on molecule --- roles/sssd_ad/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/sssd_ad/tasks/main.yml b/roles/sssd_ad/tasks/main.yml index 4c38215644..57fcaf8a55 100644 --- a/roles/sssd_ad/tasks/main.yml +++ b/roles/sssd_ad/tasks/main.yml @@ -50,6 +50,7 @@ ansible.builtin.command: realm discover {{ ad_domain }} register: realm_discovery changed_when: false + when: running_on_server - name: Sssd_ad | join the domain ansible.builtin.command: realm join -U {{ ad_admin_user }} {{ ad_domain }}