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 %} {% from "tor/map.jinja" import map with context %}
include: include:
{%- if osfamily == 'Debian' %}
- tor.repo - tor.repo
{%- endif %}
- tor.install - tor.install
deploy_tor_torrc: deploy_tor_torrc:

View File

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