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 %}
|
{% 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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user