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 }}