In case you want to save a copy of the candidate config without trusting the get_diffs() implementation from your vendor.
For example: JunOS delivers a not-really-diff of their CLI config. This isn't something you can pipe to patch(1).
Also, there are some EOS bugs with show session diffs which spam erroneous config when there is really no diff in reality (Arista bug 244870)
This is the same as archive_file except we pull the candidate config just before we rollback our changes we just pushed.
Use it just like archive_file in your ansible task.
In case you want to save a copy of the candidate config without trusting the
get_diffs()
implementation from your vendor.For example: JunOS delivers a not-really-diff of their CLI config. This isn't something you can pipe to
patch(1)
. Also, there are some EOS bugs withshow session diffs
which spam erroneous config when there is really no diff in reality (Arista bug 244870)This is the same as
archive_file
except we pull the candidate config just before we rollback our changes we just pushed.Use it just like
archive_file
in your ansible task.