Re:Replacing Ansible with salt-ssh
by fanf2 on Thursday October 22, 2020 @02:11PM
(#24861239)
The main reasons I started using Ansible in 2013 were its agentless setup (which this article covers nicely) and its --check --diff options (which this article leaves out). Does salt have a do-nothing sanity check mode?
[ Parent
| on HN ]
It does, in my case my standard “check if everything is in order on a host” is:
salt-ssh $hostname state.highstate test=True
Neat :-) does that print diffs if there are discrepancies? Including diffs of templates config files?
--output-diff is what you are looking for