---
- name: Validate RHEL ISO URL is provided
  ansible.builtin.fail:
    msg: |
      RHEL ISO URL must be provided via extra-vars.

      Example usage:
        ansible-navigator run playbooks/deploy-rhel-peerpod.yaml \
          -i inventory/test01/ \
          --extra-vars "rhel_iso_url=https://cdn.redhat.com/path/to/rhel-9.4-s390x-dvd.iso"

      You can also optionally provide:
        rhel_iso_checksum=sha256:abc123...
  when: rhel_iso_url is not defined or rhel_iso_url == ''

- name: Display configuration being used
  ansible.builtin.debug:
    msg:
      - "Environment: {{ environment_name }}"
      - "LPAR: {{ inventory_hostname }}"
      - "IP: {{ worker_ip }}"
      - "RHEL ISO: {{ rhel_iso_url }}"
      - "Boot directory: /srv/{{ environment_name }}/rhel/"