Add possibility to define APT preferences for Proxmox reposity.
This commit is contained in:
parent
689c27fef6
commit
952ab95073
|
@ -6,6 +6,7 @@
|
||||||
* Update README.md with example.
|
* Update README.md with example.
|
||||||
* Rename apt_old_* to apt_unwanted_* vars.
|
* Rename apt_old_* to apt_unwanted_* vars.
|
||||||
* Fix tasks name.
|
* Fix tasks name.
|
||||||
|
* Add possibility to define APT preferences for Proxmox reposity.
|
||||||
|
|
||||||
## v1.0.2
|
## v1.0.2
|
||||||
|
|
||||||
|
|
|
@ -39,3 +39,8 @@ apt_unwanted_pkg_manage: true
|
||||||
# unattended-upgrades
|
# unattended-upgrades
|
||||||
apt_unattended_upgrades: yes
|
apt_unattended_upgrades: yes
|
||||||
apt_unattended_upgrades_blacklist: []
|
apt_unattended_upgrades_blacklist: []
|
||||||
|
|
||||||
|
# proxmox
|
||||||
|
apt_proxmox_manage: false
|
||||||
|
apt_proxmox_pref_path: '/etc/apt/preferences.d/proxmox.pref'
|
||||||
|
apt_proxmox_pref_tpl: 'etc/apt/preferences.d/proxmox.pref.j2'
|
||||||
|
|
|
@ -6,3 +6,10 @@
|
||||||
template:
|
template:
|
||||||
src: '{{ apt_default_pref_tpl }}'
|
src: '{{ apt_default_pref_tpl }}'
|
||||||
dest: '{{ apt_default_pref_path }}'
|
dest: '{{ apt_default_pref_path }}'
|
||||||
|
|
||||||
|
# Proxmox preferences file
|
||||||
|
- name: PREF Proxmox preferences file
|
||||||
|
template:
|
||||||
|
src: '{{ apt_proxmox_pref_tpl }}'
|
||||||
|
dest: '{{ apt_proxmox_pref_path }}'
|
||||||
|
when: apt_proxmox_manage
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
Explanation: Packages from Proxmox VE
|
||||||
|
Package: *
|
||||||
|
Pin: release o=Proxmox,a=stable,n=stretch,l=Proxmox Debian repository
|
||||||
|
Pin-Priority: 530
|
||||||
|
|
Reference in New Issue