On 11/22/16 12:14 AM, Dick Davies wrote:
That playbook tells ansible to create the template on the 'all' group i.e. everything in the inventory. That's what it's trying to do.
The moment I read this I realized my mistake. You're absolutely right! I had stupidly been thinking that this would happen on the control machine. Maximum mea culpa. Changing 'all' to 'localhost' fixes the problem and lets me test the template. This was driving me crazy.
for your use case, just make 2 roles: ntp_server and ntp_client, and apply them to groups as required.
The issue I was trying to address in my posting is how to recognize which role to apply to a host. I think my basic idea is sound. All I have to do is avoid making more stupid mistakes. Thank you *very* much! Jon Forrest -- 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/8d610703-3c86-0c33-0f22-da2e9ed7e86d%40gmail.com. For more options, visit https://groups.google.com/d/optout.
