Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 3d21526

Browse files
committed
tests: more debug info
1 parent 2c6955e commit 3d21526

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

molecule/_resources/prepare.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
hosts: all
55
gather_facts: yes
66
tasks:
7+
- name: "Display kernel version"
8+
debug:
9+
var: ansible_kernel_version
10+
- name: "Display OS version #1"
11+
slurp:
12+
src: "{{ (ansible_os_family == 'Debian') | ternary('/etc/debian_version', '/etc/redhat-release') }}"
13+
ignore_errors: True
14+
changed_when: False
15+
register: os_version
16+
- name: "Display OS version #1"
17+
debug:
18+
msg: "{{ os_version['content'] | b64decode }}"
719
# to ensure having a real FQDN
820
# (dots are not allowed in LXD container names, thus sticking to short names)
921
- name: set proper hostname

0 commit comments

Comments
 (0)