Work around not yet complete package manager detection for ACD. (#5)

pull/6/head
Felix Fontein 2020-03-29 18:43:25 +02:00
parent e91849d1d8
commit de5b514629
4 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,2 @@
dependencies:
- setup_pkg_mgr

View File

@ -0,0 +1,12 @@
---
- set_fact:
pkg_mgr: community.general.pkgng
ansible_pkg_mgr: community.general.pkgng
cacheable: yes
when: ansible_os_family == "FreeBSD"
- set_fact:
pkg_mgr: community.general.zypper
ansible_pkg_mgr: community.general.zypper
cacheable: yes
when: ansible_os_family == "Suse"

View File

@ -0,0 +1,2 @@
dependencies:
- setup_pkg_mgr

View File

@ -1,3 +1,4 @@
---
- name: Include OS-specific variables
include_vars: '{{ ansible_os_family }}.yml'
when: not ansible_os_family == "Darwin" and not ansible_os_family == "FreeBSD"