mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-14 23:40:19 +01:00
a257ae7317
ansible_virtualization_type is undefined in Ansible > 2.5 when no virtualization is used. A jinja2 filter has been added that provides a default value (None) so that the check does not fail
7 lines
205 B
YAML
7 lines
205 B
YAML
---
|
|
- name: Reload the SSH service
|
|
service:
|
|
name: "{{ sshd_service }}"
|
|
state: reloaded
|
|
when: "sshd_allow_reload and ansible_virtualization_type|default(None) != 'docker'"
|
|
listen: reload_sshd
|