|
|
|
|
|
|
|
|
pkg.installed: |
|
|
pkg.installed: |
|
|
- name: {{ openssh.server }} |
|
|
- name: {{ openssh.server }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{% if openssh.sshd_enable is sameas true %} |
|
|
service.running: |
|
|
service.running: |
|
|
- enable: True |
|
|
|
|
|
|
|
|
- enable: {{ openssh.sshd_enable }} |
|
|
- name: {{ openssh.service }} |
|
|
- name: {{ openssh.service }} |
|
|
{% if openssh.server is defined %} |
|
|
{% if openssh.server is defined %} |
|
|
- require: |
|
|
- require: |
|
|
- pkg: {{ openssh.server }} |
|
|
- pkg: {{ openssh.server }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{% else %} |
|
|
|
|
|
service.dead: |
|
|
|
|
|
- enable: False |
|
|
|
|
|
- name: {{ openssh.service }} |
|
|
|
|
|
{% endif %} |