display virtualization_type

This commit is contained in:
quidame 2021-08-19 10:57:59 +02:00
parent 7f16f56c5b
commit ce3c2fa1a6

View file

@ -20,6 +20,12 @@
# apply sysctl, or it will always fail, because of that in most cases (except # apply sysctl, or it will always fail, because of that in most cases (except
# those when it should fail) we have to use `reload=no`. # those when it should fail) we have to use `reload=no`.
- name: Display ansible_virtualization_type
debug:
var: ansible_facts.virtualization_type
- name: Test inside Docker - name: Test inside Docker
when: when:
- ansible_facts.virtualization_type == 'docker' or ansible_facts.virtualization_type == 'container' - ansible_facts.virtualization_type == 'docker' or ansible_facts.virtualization_type == 'container'