From 81fca405218b3ea5b3f9d98e176ba503b2ee3804 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 19 Mar 2020 11:29:37 -0500 Subject: [PATCH] Skip currently unsupported platforms --- tests/integration/targets/patch/tasks/main.yml | 9 +++++++++ tests/integration/targets/synchronize/tasks/main.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/tests/integration/targets/patch/tasks/main.yml b/tests/integration/targets/patch/tasks/main.yml index 8d9746a..8737f12 100644 --- a/tests/integration/targets/patch/tasks/main.yml +++ b/tests/integration/targets/patch/tasks/main.yml @@ -1,3 +1,12 @@ +- debug: + msg: >- + Skipping {{ ansible_distribution }} as ansible-base does not contain + the packaging module ({{ ansible_pkg_mgr }}) for this operating system + +- name: stop executing on hosts that we don't have package manager modules for + meta: end_host + when: ansible_pkg_mgr not in ['apt', 'dnf', 'yum'] + - name: ensure idempotency installed package: name: patch diff --git a/tests/integration/targets/synchronize/tasks/main.yml b/tests/integration/targets/synchronize/tasks/main.yml index 738c9c5..6f8e5f5 100644 --- a/tests/integration/targets/synchronize/tasks/main.yml +++ b/tests/integration/targets/synchronize/tasks/main.yml @@ -1,3 +1,12 @@ +- debug: + msg: >- + Skipping {{ ansible_distribution }} as ansible-base does not contain + the packaging module ({{ ansible_pkg_mgr }}) for this operating system + +- name: stop executing on hosts that we don't have package manager modules for + meta: end_host + when: ansible_pkg_mgr not in ['apt', 'dnf', 'yum'] + - name: install rsync package: name: rsync