it seems you want something like:
- name: generate ssh key ... when: clusterdata.stdout_lines - name: install generated key ... when: not clusterdata.stdout_lines or you can check the length of clusterdata.stdout_lines, which seems to be only populated on the admin node. I would still add it to your inventory as it is easier to segregate by groups or a group/host var. -- 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/CAJ5XC8mYf1u7%2B6tjCOh4RWQ9pLfmLtbZZZGi1BtHAigm4ejs%2Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
