cellinfo
/
ansible.apt
Archived
2
0
Fork 0

Add possibility to define APT preferences for Proxmox reposity.

This commit is contained in:
Jeremy Gardais 2017-12-19 15:36:45 +01:00
parent 689c27fef6
commit 952ab95073
4 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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