mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-10 13:43:30 +01:00
Merge pull request #78 from D4N/master
Fix for ansible_virtualization_type not being defined in Ansible > 2.5
This commit is contained in:
commit
c7483f1294
2 changed files with 2 additions and 2 deletions
|
@ -3,5 +3,5 @@
|
|||
service:
|
||||
name: "{{ sshd_service }}"
|
||||
state: reloaded
|
||||
when: sshd_allow_reload and ansible_virtualization_type != 'docker'
|
||||
when: "sshd_allow_reload and ansible_virtualization_type|default(None) != 'docker'"
|
||||
listen: reload_sshd
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
name: "{{ sshd_service }}"
|
||||
enabled: true
|
||||
state: started
|
||||
when: sshd_manage_service and ansible_virtualization_type != 'docker'
|
||||
when: "sshd_manage_service and ansible_virtualization_type|default(None) != 'docker'"
|
||||
|
||||
- name: Register that this role has run
|
||||
set_fact: sshd_has_run=true
|
||||
|
|
Loading…
Reference in a new issue