Let's say I ask for a revision_no from the user. If the user doesn't input a value, I would like to display a custom message. Right now ansible shows a bunch of "skipping" message, but I know my users would want to know why it skipped.
- hosts: webservers user: deployment # serial: 1 vars_prompt: - name: "revision_no" prompt: "Input revision number" private: no vars_files: - "group_vars/deploy_list" roles: - { role: web, when: revision_no is not defined } -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1ef2ed67-29b8-4a88-aa61-e9dd07fcccd9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.