hanging ad-hoc gather-facts

Hi,
I am trying to debug playbook that keeps hanging for one machine by running ad-hoc command on that machine:

ansible -i hosts -m setup -a ‘gather_subset=!hardware’ rpi4

It hangs with following debug output:

1059 1566631954.85790: running TaskExecutor() for rpi4/TASK: setup
1059 1566631954.86076: in run() - task 10653038-cb6d-2425-0465-000000000010
1059 1566631954.86569: calling self._execute()
1059 1566631955.66259: trying /usr/lib/python2.7/dist-packages/ansible/plugins/connection
1059 1566631955.85543: Loaded config def from plugin (connection/ssh)
1059 1566631955.85606: Loading Connection ‘ssh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/ssh.py
1059 1566631955.86001: trying /usr/lib/python2.7/dist-packages/ansible/plugins/shell
1059 1566631955.90374: Loading ModuleDocFragment ‘shell_common’ from /usr/lib/python2.7/dist-packages/ansible/plugins/doc_fragments/shell_common.py
1059 1566631955.90632: Loaded config def from plugin (shell/sh)
1059 1566631955.90912: Loading ShellModule ‘sh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py
1059 1566631955.91027: Loading ShellModule ‘sh’ from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
1059 1566631955.93928: Loading ActionModule ‘normal’ from /usr/lib/python2.7/dist-packages/ansible/plugins/action/normal.py
1059 1566631955.94099: starting attempt loop
1059 1566631955.94138: running the handler
1059 1566631955.94551: _low_level_execute_command(): starting
1059 1566631955.94600: _low_level_execute_command(): executing: /bin/sh -c ‘echo ~pi && sleep 0’
^C 1052 1566632196.05481: RUNNING CLEANUP
1059 1566632196.05553: WORKER HARD EXIT:
[ERROR]: User interrupted execution

Ansible version:
ansible 2.8.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/home/libor/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0]

I am new to Ansible so please excuse me if I am missing something obvious but I would appreciate any hint to move this forward. I am stuck. :frowning:

Thank you,
Libor