From 3e150f4be539e9161a5dd6bc382aba69c21ff0f1 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Wed, 23 Dec 2015 18:16:58 -0800 Subject: [PATCH] Maintain ansible 1.9 compat for package installs The package module was introduced in ansible 2.0. The bifrost-ironic-install role claims compatibility with ansible 1.9. This commit fixes the iSCSI package installation to avoid using the package module and remain consistent with how the required_packages are installed. Change-Id: I36c446f116d2af4b01ee79aaaab02b0db2df866b --- playbooks/roles/bifrost-ironic-install/tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/playbooks/roles/bifrost-ironic-install/tasks/main.yml b/playbooks/roles/bifrost-ironic-install/tasks/main.yml index 5e8610a52..5eba04c84 100644 --- a/playbooks/roles/bifrost-ironic-install/tasks/main.yml +++ b/playbooks/roles/bifrost-ironic-install/tasks/main.yml @@ -67,9 +67,7 @@ version=0.8.1.9 when: skip_install is not defined and testing | bool != true - name: "Install iSCSI client if PXE driver support is enabled" - package: - name: "{{ iscsi_client_package }}" - state: present + action: "{{ ansible_pkg_mgr }} name={{ iscsi_client_package }} state=present" when: skip_install is not defined and enable_pxe_drivers | bool == true - name: "Shade - Install" include: pip_install.yml