Fix hostname test on docker.

The test is not supported when running in a container. It now recognizes both 'docker' and 'container' as virtualization types that should cause the test to be skipped.
pull/71858/head
Matt Clay 4 years ago
parent 17765cd4e8
commit 782effbb89

@ -1,5 +1,5 @@
# Setting the hostname in our test containers doesn't work currently # Setting the hostname in our test containers doesn't work currently
- when: ansible_facts.virtualization_type != 'docker' - when: ansible_facts.virtualization_type not in ('docker', 'container')
block: block:
- name: Include distribution specific variables - name: Include distribution specific variables
include_vars: "{{ lookup('first_found', params) }}" include_vars: "{{ lookup('first_found', params) }}"

Loading…
Cancel
Save