# Ansible Play book execution was failed with Error "Error: : Task failed: Action failed: Module result deserialization failed: No start of json char found"

**URL:** <https://forum.ansible.com/t/ansible-play-book-execution-was-failed-with-error-error-task-failed-action-failed-module-result-deserialization-failed-no-start-of-json-char-found/45230>\
**Category:** Get Help\
**Tags:** rhel, ansible-project, ubuntu, aws\
**Created:** [January 31, 2026, 1:42pm UTC](https://forum.ansible.com/t/ansible-play-book-execution-was-failed-with-error-error-task-failed-action-failed-module-result-deserialization-failed-no-start-of-json-char-found/45230 "2026-01-31T13:42:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaganmohanaraos24](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jaganmohanaraos24/32/10255_2.png) [@Jaganmohanaraos24](https://forum.ansible.com/u/Jaganmohanaraos24)\
**Post date:** [January 31, 2026, 1:42pm UTC](https://forum.ansible.com/t/ansible-play-book-execution-was-failed-with-error-error-task-failed-action-failed-module-result-deserialization-failed-no-start-of-json-char-found/45230/1 "2026-01-31T13:42:32Z")

</div>

- Give a clear explanation (and steps to reproduce the issue where possible)
- 

I am try to install webspehere application on RHEL 10 managed host from Ansible control node hosted on Ubuntu 24.04. I am triggering workflow using github and installing ansible on github runner with ubuntu 24.04 and preparing runner to connect rhel 10 manged host ( aws ec2 instance) using iamra.  
But workflow was failed. To test I am executing simple playbook to check ping status of the RHEL 10 managed host but workflow failed with error “Error: : Task failed: Action failed: Module result deserialization failed: No start of json char found”. Evan gather\_facts also failing. PLease help me in solving this issue.

Version details for ubuntu runner and ansible version installed on Ubuntu and python verion on RHEL 10 managed hosts given below.

- Include the version(s) of the relevant software tools, libraries, collections etc

Runner Image  
Image: ubuntu-24.04  
Version: 20260126.10.1

Run ansible --version  
ansible [core 2.20.2]  
config file = None  
configured module search path = [‘/home/runner/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/site-packages/ansible  
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections  
executable location = /opt/hostedtoolcache/Python/3.12.12/x64/bin/ansible  
python version = 3.12.12 (main, Oct 10 2025, 01:01:16) [GCC 13.3.0] (/opt/hostedtoolcache/Python/3.12.12/x64/bin/python)  
jinja version = 3.1.6  
pyyaml version = 6.0.3 (with libyaml v0.2.5)

RHEL 10 Managed host  
Python version installed is 3.12

Some of the variables defined are given below.

# Settings used for aws\_ssm module / connectivity

ansible\_connection: aws\_ssm  
ansible\_aws\_ssm\_bucket\_name: “{{ lookup(‘env’, ‘ANSIBLE\_S3\_BUCKET’) }}”  
ansible\_aws\_ssm\_region: “{{ lookup(‘env’, ‘AWS\_REGION’) }}”  
#ansible\_aws\_ssm\_access\_key\_id: “{{ lookup(‘env’, ‘AWS\_ACCESS\_KEY\_ID’) }}”  
#ansible\_aws\_ssm\_secret\_access\_key: “{{ lookup(‘env’, ‘AWS\_SECRET\_ACCESS\_KEY’) }}”  
ansible\_aws\_ssm\_bucket\_sse\_mode: “aws:kms”  
ansible\_python\_interpreter: /usr/bin/python3  
ansible\_aws\_ssm\_timeout: 1900

- my code!

```auto
- name: Install WAS checking
  hosts: ec2-uat-ansible-automation
  #hosts: ec2-uat-was-websrv-1
  gather_facts: no
  become: true
  become_method: sudo
# become_user: svc-mw-was9spn@awsemea.com
  #become_flags: "-E"
  vars:
    # ansible_become_flags: -H -S -n
      become_flags: -H -S -n
   # ansible_shell_type: bash
   # ansible_shell_executable: /bin/bash
 
  tasks:
    - name: Check ping
      become_user: svc-mw-was9spn@awsemea.com
      ansible.builtin.command: pwd
      register: dir_out
 
    - name: Display ping output
      debug:
        msg: "{{ dir_out.stdout }}"

When i chenged gather_facts to yes, workflow/playbook failed dwith the following code.

Error: : Task failed: Action failed: The following modules failed to execute: ansible.legacy.setup.
 

-
```
