Roger, the documentation you are quoting is perfectly fine, it shows you how to invoke the same role with different parameters. What you are then doing inside the role is wrong. It is two different things right?
You need to understand how playbooks and roles work in Ansible and Paul's comment is doing a good job to help you. Read it again carefully. On Sunday, August 2, 2015 at 2:11:48 AM UTC+10, Roger Sherman wrote: > > Ok, so what you’re telling me is the documentation is wrong? Because > that’s literally exactly what it’s saying to do - if you look at my > original post, you’ll see I quoted what the documentation says to do. > > I’m not saying it’s right and you’re wrong. If it’s wrong, that’s what I > want to hear. > > Thank you, > > Roger Sherman > public key - A3068658 > > On Jul 31, 2015, at 7:47 PM, Paul Markham <[email protected] > <javascript:>> wrote: > > You're executing the role twice, each time with different parameters. If > the role writes a single file each time, you end up with two files. The way > you've got it now, the role will write both files each time it's executed; > the result is what you're seeing: both files have the same content, which > comes from the second call to the role. > > > -- 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/d449071a-33cc-4560-8737-7a587fadb7a1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
