---

- name: information
  hosts: all
  gather_facts: true

  pre_tasks:

    - name: environment
      ansible.builtin.debug:
        msg:
          - "os family            : {{ ansible_distribution }} ({{ ansible_os_family }})"
          - "distribution version : {{ ansible_distribution_major_version }}"
          - "ansible version      : {{ ansible_version.full }}"
          - "python version       : {{ ansible_python.version.major }}.{{ ansible_python.version.minor }}"

- name: prepare container
  hosts: instance
  gather_facts: true

  pre_tasks:

    - name: update package cache
      become: true
      ansible.builtin.package:
        update_cache: true

    - name: install helper utils
      ansible.builtin.package:
        name:
          - findutils
          - python3-apt
        state: present
      when:
        - ansible_os_family | lower == "debian"
...
