Manage repo only on Debian
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
858ace95f3
commit
9ac23e9235
@ -1,7 +1,9 @@
|
||||
{% from "tor/map.jinja" import map with context %}
|
||||
|
||||
include:
|
||||
{%- if osfamily == 'Debian' %}
|
||||
- tor.repo
|
||||
{%- endif %}
|
||||
- tor.install
|
||||
|
||||
deploy_tor_torrc:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user