mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-12-01 00:25:31 +01:00
15 lines
342 B
Plaintext
15 lines
342 B
Plaintext
{% from "openssh/map.jinja" import openssh with context %}
|
|
|
|
openssh:
|
|
{% if openssh.server is defined %}
|
|
pkg.installed:
|
|
- name: {{ openssh.server }}
|
|
{% endif %}
|
|
service.running:
|
|
- enable: True
|
|
- name: {{ openssh.service }}
|
|
{% if openssh.server is defined %}
|
|
- require:
|
|
- pkg: {{ openssh.server }}
|
|
{% endif %}
|