From e6801edeed3df5d90046c46aefaf6b7c90c73aa8 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sun, 19 Oct 2025 15:47:02 -0500 Subject: [PATCH 1/2] tasks: assert supported OS family (RedHat/Debian) --- tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index dd2536d..19cf25d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,6 +4,13 @@ # NOTE: limited EL8 testing/coverage, ansible-core 2.17+ lacks support for Python 3.6 # [managing Python releases considered out of scope] +- name: Assert Supported Distribution + ansible.builtin.assert: + that: + - ansible_os_family in ['Debian', 'RedHat'] # + several derivatives + fail_msg: "OS Family '{{ ansible_os_family }}' not supported, expected Debian/RedHat." + success_msg: "Supported OS Family ({{ ansible_os_family }})" + - name: Package Facts ansible.builtin.package_facts: { manager: auto } From 2f16e9e832d67123efee2b68a94e98cb1d8cca59 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sun, 19 Oct 2025 15:48:27 -0500 Subject: [PATCH 2/2] workflow: comment assert --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index 19cf25d..a556217 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,6 +4,7 @@ # NOTE: limited EL8 testing/coverage, ansible-core 2.17+ lacks support for Python 3.6 # [managing Python releases considered out of scope] +# Galaxy 'platforms' keyword is reportedly being phased out, dist. support noted in README: now assert - name: Assert Supported Distribution ansible.builtin.assert: that: