Skip currently unsupported platforms

This commit is contained in:
Matt Martz 2020-03-19 11:29:37 -05:00
parent e335f63c87
commit 81fca40521
2 changed files with 18 additions and 0 deletions

View file

@ -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

View file

@ -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