MP> No, but you can add the machine to the necessary groups when you use
MP> add_host after its created.

Yeah, I can mostly do this; the tricky thing is that there are some
derived groups that the host gets added to based on logic in the dynamic
inventory script. I could in theory duplicate that logic in my playbook,
but it'd be hard to be sure to get right.

Another workaround would be to have a wrapper script that calls Ansible
twice, once to launch and then a second time to configure; the tricky
thing there is that we're using exact_count, and registering the new
instances, so that we know which ones are new. I'm not sure how we'd
preserve that across Ansible runs.

                                      -Josh (j...@care.com)



This email is intended for the person(s) to whom it is addressed and may 
contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, 
distribution, copying, or disclosure by any person other than the addressee(s) 
is strictly prohibited. If you have received this email in error, please notify 
the sender immediately by return email and delete the message and any 
attachments from your system.

-- 
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/21610.33080.147191.662844%40gargle.gargle.HOWL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to