I have started Microsoft defender deployment through ansible but when i add microsoft apt repository for mdatp it not works so please revert me. Also i don’t know the meaning of “[codename] main”
name: Add Microsoft apt repository for MDATP
apt_repository:
repo: deb [arch=arm64,armhf,amd64] https://packages.microsoft.com/[distro]/[version]/prod [codename] main
update_cache: yes
state: present
filename: microsoft-[channel]
when: ansible_os_family == “Debian”
You can’t really just continue down the road it looks like you’re going down, you’re going to need to understand which Linux OS flavors and what versions of the OS you’re going to be installing MDATP upon. I say this because going to Index of config/ shows different agents for different versions of Debian, Ubuntu, SLES, RHEL, Rocky, and a few others.
So you’re going to need to find a way to iterate over your systems and figure out which repository belongs where. There are options with templating but it is still going to require effort and understanding your target environment.