mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 07:35:31 +01:00
display virtualization_type
This commit is contained in:
parent
7f16f56c5b
commit
ce3c2fa1a6
1 changed files with 6 additions and 0 deletions
|
|
@ -20,6 +20,12 @@
|
|||
# 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`.
|
||||
|
||||
|
||||
- name: Display ansible_virtualization_type
|
||||
debug:
|
||||
var: ansible_facts.virtualization_type
|
||||
|
||||
|
||||
- name: Test inside Docker
|
||||
when:
|
||||
- ansible_facts.virtualization_type == 'docker' or ansible_facts.virtualization_type == 'container'
|
||||
|
|
|
|||
Loading…
Reference in a new issue