From 6d0d043babb1af20aac6be3784b529b886101845 Mon Sep 17 00:00:00 2001 From: Sergey Korolev Date: Thu, 22 Dec 2016 16:48:27 +0300 Subject: [PATCH] Don't fail without package manager Atomic Host uses unsupported package manager `rpm-ostree`. So, `ansible_pkg_mgr` is `unknown` and this task will fail. `sshd` is already in base system images. Apart from this, sshd configuration is standard for Fedora/CentOS. I'm not sure it's the right solution. May be it's better to create new boolean variable like `sshd_manage_install` and use it here in `when`. --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index 65f6a9e..a9ed28a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,6 +22,7 @@ name="{{ item }}" state=installed with_items: "{{ sshd_packages }}" + when: ansible_pkg_mgr != 'unknown' tags: - sshd