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:
parent
17765cd4e8
commit
782effbb89
1 changed files with 1 additions and 1 deletions
|
@ -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) }}"
|
||||
|
|
Loading…
Reference in a new issue