updated repos state
This commit is contained in:
parent
cc5fa44956
commit
c779a0e4e8
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
include:
|
include:
|
||||||
- .prereqs
|
- .prereqs
|
||||||
- .keyring
|
- .install
|
||||||
|
@ -1,29 +1,29 @@
|
|||||||
---
|
---
|
||||||
{%- from "repos/map.jinja" import repos with context %}
|
{%- from "repos/map.jinja" import repos with context %}
|
||||||
{%- for repo in repos %}
|
{%- for name,repo in repos.items() %}
|
||||||
|
|
||||||
{%- if repo.enabled %}
|
{%- if repo.enabled %}
|
||||||
{%- if repo.key_method is defined %}
|
{%- if repo.key_method is defined %}
|
||||||
{%- if repo.key_method == 'file' %}
|
{%- if repo.key_method == 'file' %}
|
||||||
repo-key-{{ repo.name }}:
|
repo-key-{{ name }}:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /etc/apt/keyrings/{{ repo.name }}
|
- name: /etc/apt/keyrings/{{ name }}
|
||||||
- source: {{ repo.key_url }}
|
- source: {{ repo.key_url }}
|
||||||
- skip_verify: true
|
- skip_verify: true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
repo-{{ repo.name }}:
|
repo-{{ name }}:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- humanname: {{ repo.humanname }}
|
- humanname: {{ repo.humanname }}
|
||||||
{%- if repo.ppa %}
|
{%- if repo.ppa %}
|
||||||
- ppa: {{ repo.ppasrc }}
|
- ppa: {{ repo.ppasrc }}
|
||||||
- dist: {{ repo.dist }}
|
- dist: {{ repo.dist }}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
- name: deb [signed-by=/etc/apt/keyrings/{{ repo.name }}] {{ repo.src }} {{ repo.suites }} {{ repo.components }}
|
- name: deb [signed-by=/etc/apt/keyrings/{{ name }}] {{ repo.src }} {{ repo.suites }} {{ repo.components }}
|
||||||
- gpgcheck: {{ repo.gpgcheck|default(1) }}
|
- gpgcheck: {{ repo.gpgcheck|default(1) }}
|
||||||
- aptkey: false
|
- aptkey: false
|
||||||
- file: {{ repo.file }}
|
- file: /etc/apt/sources.list.d/{{ name }}.list
|
||||||
- clean_file: true
|
- clean_file: true
|
||||||
{%- if repo.key_method is defined %}
|
{%- if repo.key_method is defined %}
|
||||||
{%- if repo.key_method == 'file' %}
|
{%- if repo.key_method == 'file' %}
|
||||||
@ -36,12 +36,11 @@ repo-{{ repo.name }}:
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
|
|
||||||
repo-{{ repo.name }}:
|
repo-{{ name }}:
|
||||||
file.absent:
|
file.absent:
|
||||||
{%- if not repo.ppa %}
|
{%- if not repo.ppa %}
|
||||||
- name: {{ repo.file }}
|
- name: /etc/apt/sources.list.d/{{ name }}.list
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user