mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 15:45:20 +01:00
Skip currently unsupported platforms
This commit is contained in:
parent
e335f63c87
commit
81fca40521
2 changed files with 18 additions and 0 deletions
|
|
@ -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
|
- name: ensure idempotency installed
|
||||||
package:
|
package:
|
||||||
name: patch
|
name: patch
|
||||||
|
|
|
||||||
|
|
@ -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
|
- name: install rsync
|
||||||
package:
|
package:
|
||||||
name: rsync
|
name: rsync
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue