nickjj / rolespec

A test library for testing Ansible roles
GNU General Public License v3.0
232 stars 20 forks source link

Run Ansible with `--diff`` in assert_playbook_idempotent #43

Open ypid opened 7 years ago

ypid commented 7 years ago

This should help with debugging when the assertion fails.

Example usage: https://travis-ci.org/debops/ansible-apt/builds/216344730#L824-L826 Example usage: https://github.com/debops/ansible-apt/pull/88

drybjed commented 7 years ago

I wonder what happened here. IIRC, Ansible changed the name of the inventory parameter in the configuration, maybe it's time to follow suit.

ypid commented 7 years ago

@drybjed I am also not quite sure, but I was able to reproduce and workaround it. Checkout https://github.com/ansible/ansible/issues/23078