The command module does not run in check mode, it has no way of knowing that the command is safe. The subsequent task depends on that so it fails when the output is skipped.
use `always_run: True` on the command task to force execution in check mode. ---------- Brian Coca -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7fPJeNKFF5J-YXoMHkJwH8_Hiqqj95HoP_RQWoeCpWnyA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
