forked from data.coop/ansible
Add apt preferences file for dell repo
Deny all packages from dell repo that exist elsewhere Fixes #95
This commit is contained in:
parent
a8287a712b
commit
442bb4ad58
|
@ -8,8 +8,16 @@
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "deb https://linux.dell.com/repo/community/openmanage/10101/focal focal main"
|
repo: "deb https://linux.dell.com/repo/community/openmanage/10101/focal focal main"
|
||||||
state: "present"
|
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
|
||||||
|
|
||||||
- name: update apt cache
|
- name: update apt cache
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
Loading…
Reference in a new issue