--- # AWX "hello world" smoke-test playbook. # # Point an AWX Project at this repo, then create a Job Template whose # playbook is playbooks/hello_world.yml and run it against any inventory. # A passing run confirms AWX can: clone the repo, parse the playbook, # reach the target over SSH, become root, and report facts. - name: AWX connectivity smoke test hosts: all gather_facts: true become: true tasks: - name: Confirm reachable and privileged ansible.builtin.assert: that: - ansible_facts.os_family == "Debian" fail_msg: >- KNELIAC only manages Debian-family hosts (Debian/Ubuntu/Kali/RPi OS); found OS family "{{ ansible_facts.os_family }}". success_msg: "Host {{ inventory_hostname }} is Debian-family ({{ ansible_facts.distribution }} {{ ansible_facts.distribution_version }})." - name: Report management target ansible.builtin.debug: msg: >- AWX successfully managed {{ inventory_hostname }} ({{ ansible_facts.distribution }} {{ ansible_facts.distribution_version }}, kernel {{ ansible_facts.kernel }}, arch {{ ansible_facts.architecture }}). - name: Show where full provisioning runs from ansible.builtin.debug: msg: "Run playbooks/setup_new_system.yml for the full host build."