format ansible code examples and add DNF/YUM key instructions

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
Thomas Sjögren 2021-01-02 22:19:46 +01:00
parent 2a3e536a5c
commit 160a681717

View File

@ -153,6 +153,12 @@ Create a subtask or role files that contribute to an playbook or task.
filename: microsoft-[channel].list filename: microsoft-[channel].list
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- name: Add Microsoft DNF/YUM key
rpm_key:
state: present
key: https://packages.microsoft.com/keys/microsoft.asc
when: ansible_os_family == "RedHat"
- name: Add Microsoft yum repository for MDATP - name: Add Microsoft yum repository for MDATP
yum_repository: yum_repository:
name: packages-microsoft-com-prod-[channel] name: packages-microsoft-com-prod-[channel]