Ansible ssh error on alma linux

hello i am trying to setup a wireguard tunnel between my lan and a oracle always free vps and im having issues running tasks on it it gathers facts correctly but when i use the dnf module? ansible erros on the next task and wont work untill i rol back to a pre ansible snapshot i made

fatal: [vps]: FAILED! => {
    "changed": false,
    "module_stderr": "OpenSSH_9.7p1, OpenSSL 3.3.1 4 Jun 2024\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug3: /etc/ssh/ssh_config line 2: Including file /etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf depth 0\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf\r\ndebug2: resolve_canonicalize: hostname is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/olivia/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/olivia/.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master at '/home/olivia/.ansible/cp/e382842f2e'\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 178929\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet_timeout: read header failed: Broken pipe\r\ndebug2: Received exit status from master 137\r\nShared connection to closed.\r\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 137

here is the playbook snippet

- name: install wireguard 
      - wireguard-tools
    state: latest
  become: true
- name: add sysctls for ip forwarding
    src: 90-ip-forwarding.conf
    dest: /etc/sysctl.d/90-ip-forwarding.conf
  become: true
- name: apply sysctls
    cmd: sysctl -p 
  become: true

it errors after the dnf tasks(or the first task in the play all the first tasks are installing things to i cant tell)
i have a second plain ssh session and that continues to work fine after the ansible one errors out. i opened an issue on github but it was closed and said to come here instead