From 781be61881eda430a752ec558d7ebc1c965f78e0 Mon Sep 17 00:00:00 2001 From: Lev Lozhkin Date: Tue, 19 Jul 2016 13:23:48 -0700 Subject: [PATCH] Convert dig exist check to unless req --- openssh/known_hosts.sls | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/openssh/known_hosts.sls b/openssh/known_hosts.sls index af22f6b..9541e55 100644 --- a/openssh/known_hosts.sls +++ b/openssh/known_hosts.sls @@ -1,14 +1,9 @@ {% from "openssh/map.jinja" import openssh with context %} -check for existing dig: - cmd.run: - - name: which dig - ensure dig is available: pkg.installed: - name: {{ openssh.dig_pkg }} - - onfail: - - cmd: check for existing dig + - unless: which dig manage ssh_known_hosts file: file.managed: