Skip to content

Commit 88e46ac

Browse files
committed
test: fix ssh_reboot failures
Signed-off-by: Rich Megginson <[email protected]>
1 parent 9bbcd0b commit 88e46ac

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/tests_ssh_reboot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- name: Ensure that the rule runs with ssh
33
hosts: all
4+
gather_facts: true
45
vars:
56
# this is the outside address under which the ssh dump server is
67
# known and ansible is supposed to be configured to be able to
@@ -63,6 +64,19 @@
6364
delegate_to: "{{ kdump_test_ssh_server_outside }}"
6465
delegate_facts: true
6566

67+
- name: Debug0
68+
debug:
69+
msg: facts for {{ item }} {{ hostvars[item]["ansible_facts"] | to_nice_json }}
70+
loop: "{{ hostvars.keys() }}"
71+
72+
- name: Debug1
73+
debug:
74+
msg: |
75+
kdump_test_ssh_server_inside {{ kdump_test_ssh_server_inside }}
76+
kdump_test_ssh_server_outside {{ kdump_test_ssh_server_outside }}
77+
kdump_test_ssh_source {{ kdump_test_ssh_source }}
78+
inventory_hostname {{ inventory_hostname }}
79+
6680
- name: Create a kdump user on kdump_ssh_server
6781
user:
6882
name: kdump_ssh_user
@@ -115,6 +129,10 @@
115129
include_role:
116130
name: linux-system-roles.kdump
117131

132+
- name: Debug2
133+
command: cat /etc/kdump.conf
134+
changed_when: false
135+
118136
- name: Flush handlers
119137
meta: flush_handlers
120138

0 commit comments

Comments
 (0)