{% from "tor/map.jinja" import map, osfamily 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 - enable: True - require: - pkg: install_tor