From a668e0f85291962a5484f45b45d11039f6a64e42 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Sat, 2 Jan 2016 00:13:29 -0800 Subject: [PATCH] Support both apt and yum package managers --- tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 3a9f3f4..886f795 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,9 +2,7 @@ --- - name: Install Samba packages - yum: - pkg: "{{ item }}" - state: installed + action: "{{ ansible_pkg_mgr }} pkg={{ item }} state=installed" with_items: - libsemanage-python - samba-common