Manage repo only on Debian

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-02-05 18:15:56 +01:00
parent 858ace95f3
commit 9ac23e9235
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
2 changed files with 6 additions and 0 deletions

View File

@ -1,7 +1,9 @@
{% from "tor/map.jinja" import map with context %}
include:
{%- if osfamily == 'Debian' %}
- tor.repo
{%- endif %}
- tor.install
deploy_tor_torrc:

View File

@ -1,13 +1,17 @@
{% from "tor/map.jinja" import map with context %}
{%- if osfamily == 'Debian' %}
include:
- tor.repo
{%- endif %}
install_tor:
pkg.installed:
- pkgs: {{ map.pkgs }}
{%- if osfamily == 'Debian' %}
- require:
- pkgrepo: install_tor_repo
{%- endif %}
service.running:
- name: {{ map.service }}
- restart: True