datacoop.ansible/roles/ubuntu_base/tasks/dell-apt-repo.yml

21 lines
542 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
2022-07-15 15:25:33 +00:00
---
- name: Import dell apt signing key
2022-07-21 07:19:36 +00:00
apt_key:
id: "1285491434D8786F"
keyserver: "keyserver.ubuntu.com"
- name: Configure dell apt repo
2022-07-15 15:25:33 +00:00
apt_repository:
repo: "deb https://linux.dell.com/repo/community/openmanage/10101/focal focal main"
state: present
- name: Restrict dell apt repo"
copy:
dest: "/etc/apt/preferences.d/dell"
content: |
Explanation: Deny all packages from this repo that exist elsewhere
Package: *
Pin: origin "linux.dell.com"
Pin-Priority: 400