2.1 KiB
2.1 KiB
Apt
Overview
Manage APT repos, preferences and configuration for IPR's servers.
Role Variables
- apt_src_list_manage : If apt sources list files should be managed [default :
true
]. - apt_purge_src_list_file : If the default sources.file must be absent [default :
true
]. - apt_stretch_manage : If Stretch configuration should be managed [default :
true
]. - apt_default_pref_path : Path to set the default preferences file for all repositories [default :
'/etc/apt/preferences.d/default.pref'
]. - apt_default_pref_tpl : Template used to generate the previous config file [default :
'etc/apt/preferences.d/default.pref.j2'
].
Example Playbook
- Use defaults vars :
- hosts: serverXYZ
roles:
- role: ipr-cnrs.apt
Configuration
Sources List
Manage Debian's sources.list :
- Remove the default
/etc/apt/sources.list
file. - Add Stretch repositories.
- Update Apt if any repositories modifications.
Preferences
- Set the preferences for all repositories, default to :
- Stretch - 510.
- Stretch Backports - 500.
Development
This source code comes from our Gogs instance and the Github repo exist just to be able to send the role to Ansible Galaxy…
But feel free to send issue/PR here :)
Thanks to this hook, Github automatically got updates from our Gogs instance :)
License
Author Information
Jérémy Gardais
- Source : on IPR's Gogs
- IPR (Institut de Physique de Rennes)