Hi, I'm trying to add some "shift left" to my Ansible, so that mistakes don't creep in. Firstly, I thought I would run --check (perhaps as a git pre-commit hook or perhaps in Jenkins pipeline eventually). So, I tried it locally. Unfortunately it bombs out in several places, as some tasks are reliant on the output of other tasks. Not a great problem, as I've added
when: not ansible_check_mode to those tasks. Is there a better way of achieving this? Particularly it would be useful to check that variables are set to something sensible (catch typos or just missed variables) BEFORE it goes into production. We have vars files based on environments, so these don't get checked until we actually deploy to that environment. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/aa334744-9303-42ea-8017-58e2afd52719n%40googlegroups.com.
