Open khimaros opened 1 year ago
Love this idea. As part of tackling #805 I am going to overhaul the diff output to be more verbose (think terraform).
I managed to hack a prototype by wrapping files.put
and running the diff there. It's inefficient because it needs to always pull the remote file (even if the sha1 matches), implementing it within files.put
would remove this issue.
I think it's pretty important feature, in ansible I always run it with --check first to review changes It's dangerous to overwrite sshd_config without checking the difference first
Also I think it should be a standard way to report differences from operations, so for example postgresql.role operation can report what changes it will do to existing role
Is your feature request related to a problem? Please describe
it would be helpful to see specifically what changes will be made to a file before doing it. the only tool i've seen do this well is
slack
, but i miss it every time.Describe the solution you'd like
when running in --dry mode (or perhaps with a new flag --diff), show the files which would be changed by a deploy and the differences between the old and new file.