Ansible: How to run a playbook without making Changes

preview_player
Показать описание


0:00 Introduction
0:34 Running Ansible Playbooks with Check and Diff mode
Рекомендации по теме
Комментарии
Автор

Have you been using Ansible check or diff mode?

DevOpsJourney
Автор

I've actually started out using Ansible with check mode! I found out that you can output the results into json format for parsing, and then I created a simple python script that creates an excel file showing what tasks each of my nodes are either "OK" or would be "changed." That way ansible is basically doing config validation for me, before I'm ready to actually make any changes to my devices. It's been really useful!

I didn't know about diff mode. Looks like it would be way too much output to format neatly in excel, but that is useful as well, because I could see exactly what Ansible is going to change.

andrewohanian