I am trying to figure out, how to run repadmin on the Domain controller itself:
- name: Sync Active Directory With New Changes ansible.windows.win_shell: repadmin /syncall '{{ server.domain }}' /AdeP become: yes become_method: runas become_user: '{{ server.domain }}\username' The above tries to run on the task server, that has the AD modules installed, but I would like to run the above on the domain controller itself. Would we use the delegate option and then specify the Domain controller? Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d935c84a-3ece-4eb1-8b00-8b7176af27c6n%40googlegroups.com.