Skip to content

Commit

Permalink
Merge pull request #78 from D4N/master
Browse files Browse the repository at this point in the history
Fix for ansible_virtualization_type not being defined in Ansible > 2.5
  • Loading branch information
mattwillsher authored Apr 24, 2018
2 parents 77768eb + a257ae7 commit c7483f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7483f1

Please sign in to comment.