---
- name: Test root connection
  ansible.builtin.ping:
  changed_when: "False"
  ignore_unreachable: true
  register: root_ping

- include:
    file: create-deploy-user.yml
  when: "not (root_ping.unreachable | default(True))"

---
- name: Test root connection
  ansible.builtin.ping:
  changed_when: "False"
  ignore_unreachable: true
  register: root_ping

- include:
    file: create-deploy-user.yml
  when: "'unreachable' in root_ping and root_ping.unreachable'"

Fix check for unreachable root connection.
Fix check for unreachable root connection.
