Parcourir la source
Keep sources.list even if remove_sources_list set
Deleting the file causes "could not open file '/etc/apt/sources.list'"
warnings. Better to keep it around but just remove its contents.
tags/v0.7.0
Adam Bolte
il y a 8 ans
Parent
révision
f09143a79a
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec
3 ajouts et
3 suppressions
-
apt/repositories.sls
|
|
@@ -11,12 +11,12 @@ debian-archive-keyring: |
|
|
|
|
|
|
|
/etc/apt/sources.list: |
|
|
|
file.managed: |
|
|
|
{%- if remove_sources_list %} |
|
|
|
- contents: '' |
|
|
|
{%- else %} |
|
|
|
- mode: '0644' |
|
|
|
- user: root |
|
|
|
- group: root |
|
|
|
{% if remove_sources_list %} |
|
|
|
- contents: '' |
|
|
|
- contents_newline: False |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{{ sources_list_dir }}: |