Convert dig exist check to unless req

This commit is contained in:
Lev Lozhkin 2016-07-19 13:23:48 -07:00
parent 7eefd1a0f1
commit 781be61881
1 changed files with 1 additions and 6 deletions

View File

@ -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: