Failed to Run Kubespray for the first time

I received the following error error when i started running kubespray.

ok: [mymaster] => {
“msg”: “Check roles/kubespray-defaults/defaults/main.yml”
}
ok: [mynode0] => {
“msg”: “Check roles/kubespray-defaults/defaults/main.yml”
}
ok: [mynode1] => {
“msg”: “Check roles/kubespray-defaults/defaults/main.yml”
}
Sunday 11 July 2021 19:10:17 -0400 (0:00:00.056) 0:00:01.112 ***********
Sunday 11 July 2021 19:10:17 -0400 (0:00:00.095) 0:00:01.207 ***********
Sunday 11 July 2021 19:10:17 -0400 (0:00:00.026) 0:00:01.234 ***********
Sunday 11 July 2021 19:10:17 -0400 (0:00:00.049) 0:00:01.283 ***********
Sunday 11 July 2021 19:10:17 -0400 (0:00:00.030) 0:00:01.314 ***********
Sunday 11 July 2021 19:10:17 -0400 (0:00:00.046) 0:00:01.360 ***********
[WARNING]: raw module does not support the environment keyword
[WARNING]: raw module does not support the environment keyword
[WARNING]: raw module does not support the environment keyword

TASK [bootstrap-os : Fetch /etc/os-release] ************************************************************************************************************************
fatal: [mymaster]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: ssh: connect to host 98.24.61.94 port 22: Connection timed out”, “unreachable”: true}
fatal: [mynode0]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: ssh: connect to host 24.0.0.2 port 22: Connection timed out”, “unreachable”: true}
fatal: [mynode1]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: ssh: connect to host 24.0.0.3 port 22: Connection timed out”, “unreachable”: true}

NO MORE HOSTS LEFT *************************************************************************************************************************************************

PLAY RECAP *********************************************************************************************************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
mymaster : ok=4 changed=3 unreachable=1 failed=0 skipped=22 rescued=0 ignored=0
mynode0 : ok=4 changed=3 unreachable=1 failed=0 skipped=16 rescued=0 ignored=0
mynode1 : ok=4 changed=3 unreachable=1 failed=0 skipped=16 rescued=0 ignored=0

Sunday 11 July 2021 19:28:37 -0400 (0:18:20.059) 0:18:21.420 ***********

bootstrap-os : Fetch /etc/os-release --------------------------------------------------------------------------------------------------------------------- 1100.06s
kubespray-defaults : Gather ansible_default_ipv4 from all hosts --------------------------------------------------------------------------------------------- 0.10s
download | Download files / images -------------------------------------------------------------------------------------------------------------------------- 0.06s
add nodes to calico_rr group -------------------------------------------------------------------------------------------------------------------------------- 0.06s
kubespray-defaults : Configure defaults --------------------------------------------------------------------------------------------------------------------- 0.06s
prep_download | Set image pull/info command for containerd and crio on localhost ---------------------------------------------------------------------------- 0.06s
prep_download | Create staging directory on remote node ----------------------------------------------------------------------------------------------------- 0.05s
container-engine/nerdctl : nerdctl | Download nerdctl ------------------------------------------------------------------------------------------------------- 0.05s
kubespray-defaults : set fallback_ips ----------------------------------------------------------------------------------------------------------------------- 0.05s
download | Get kubeadm binary and list of required images --------------------------------------------------------------------------------------------------- 0.05s
kubespray-defaults : Populates no_proxy to all hosts -------------------------------------------------------------------------------------------------------- 0.05s
prep_download | Register docker images info ----------------------------------------------------------------------------------------------------------------- 0.05s
container-engine/crictl : install crictĺ -------------------------------------------------------------------------------------------------------------------- 0.05s
container-engine/nerdctl : nerdctl | Copy nerdctl binary from download dir ---------------------------------------------------------------------------------- 0.05s
prep_download | Parse the outputs of the previous commands -------------------------------------------------------------------------------------------------- 0.05s
prep_download | Set a few facts ----------------------------------------------------------------------------------------------------------------------------- 0.04s
prep_download | Set image pull/info command for containerd and crio ----------------------------------------------------------------------------------------- 0.04s
prep_download | Set image pull/info command for docker on localhost ----------------------------------------------------------------------------------------- 0.04s
prep_download | Set image pull/info command for docker ------------------------------------------------------------------------------------------------------ 0.04s
prep_download | Check that local user is in group or can become root ---------------------------------------------------------------------------------------- 0.04s

My myinventory.yaml file looks like the following

all:
vars:
cluster_id: “1.0.0.1”
ansible_user: root
hosts:
mymaster:

  ansible_host: 24.0.0.1
mynode0:
  ansible_host: 24.0.0.2
mynode1:
  ansible_host: 24.0.0.3

children:
kube-master:
hosts:
mymaster:
etcd:
hosts:
mynode0:
mynode1:
kube-node:
hosts:
mynode0:
mynode1:
calico-rr:
hosts:
mymaster:
mynode0:
mynode1:

k8s-cluster:
  children:
    kube-master:
    kube-node:
    calico-rr:

SSH is enabled on my system.
I don’t know how many nodes i should have, what their ip addresses should be, or why i can’t seem to fix this error.

Just to confirm, can you can ssh into the nodes via terminal?