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.
This commit is contained in:
Matt Clay 2020-09-21 16:42:46 -07:00
parent 17765cd4e8
commit 782effbb89

View file

@ -1,5 +1,5 @@
# 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:
- name: Include distribution specific variables
include_vars: "{{ lookup('first_found', params) }}"