mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-28 03:28:09 +01:00
Convert dig exist check to unless req
This commit is contained in:
parent
7eefd1a0f1
commit
781be61881
@ -1,14 +1,9 @@
|
|||||||
{% from "openssh/map.jinja" import openssh with context %}
|
{% from "openssh/map.jinja" import openssh with context %}
|
||||||
|
|
||||||
check for existing dig:
|
|
||||||
cmd.run:
|
|
||||||
- name: which dig
|
|
||||||
|
|
||||||
ensure dig is available:
|
ensure dig is available:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ openssh.dig_pkg }}
|
- name: {{ openssh.dig_pkg }}
|
||||||
- onfail:
|
- unless: which dig
|
||||||
- cmd: check for existing dig
|
|
||||||
|
|
||||||
manage ssh_known_hosts file:
|
manage ssh_known_hosts file:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
Loading…
Reference in New Issue
Block a user