redhat – Get actual commands running for docker-ce from ansible-playbook

I’m using https://github.com/kubernetes-sigs/kubespray

Is there a way to know exactly which command the following Ansible code will execute on the remote server?

- name: ensure docker packages are installed
  package:
  name: "{{ docker_package_info.pkgs }}"
  state: "{{ docker_package_info.state | default('present') }}"
  module_defaults:
   apt:
     update_cache: true
   dnf:
     enablerepo: "{{ docker_package_info.enablerepo | default(omit) }}"
   yum:
    enablerepo: "{{ docker_package_info.enablerepo | default(omit) }}"
   zypper:
    update_cache: true
   register: docker_task_result
     until: docker_task_result is succeeded
     retries: 4
     delay: "{{ retry_stagger | d(3) }}"
     notify: restart docker
     when:
     - not ansible_os_family in ("Flatcar Container Linux by Kinvolk")
     - not is_ostree
     - docker_package_info.pkgs|length > 0

I’m getting the following error in RHEL8. I want to run manually docker-ce on the relevant VM and check the error.

 {"attempts": 4, "changed": true, "cmd": "set -o pipefail && /usr/bin/docker ps -aq | xargs -r docker rm -fv", "delta": "0:00:00.008934", "end": "2021-07-16 18:46:54.009010", "msg": "non-zero return code", "rc": 127, "start": "2021-07-16 18:46:54.000076", "stderr": "/bin/bash: /usr/bin/docker: No such file or directory", "stderr_lines": ("/bin/bash: /usr/bin/docker: No such file or directory"), "stdout": "", "stdout_lines": ()}

Thanks,