ansible/roles/ubuntu_base/tasks/custom-apt-repos.yml

24 lines
582 B
YAML
Raw Normal View History

2022-07-15 15:25:33 +00:00
---
2022-07-21 07:19:36 +00:00
- name: import dell apt signing key
apt_key:
id: "1285491434D8786F"
keyserver: "keyserver.ubuntu.com"
2022-07-15 15:25:33 +00:00
- name: "configure dell apt repo"
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
2022-07-15 15:25:33 +00:00
- name: update apt cache
apt:
update_cache: yes