File dependency between multiple hosts

16 views
Skip to first unread message

Luc Lemieux

unread,
Aug 4, 2021, 2:15:46 PM8/4/21
to Ansible Project
Hi I have a very specific deployment case and am not sure how to plan it using Ansible or even if it's something doable with Ansible.

Deploying a MongoDB swarm on 3 servers, I have to deploy on 1 server first which generates a "secrets" file that must then be used to deploy the 2nd and 3rd nodes of the swarm.

Would the only way to do it be to run a role for the master, then collect the secrets file and inject it as an input to the role for the 2 others?

Thank you

Dick Visser

unread,
Aug 5, 2021, 12:34:03 AM8/5/21
to ansible...@googlegroups.com
Ideally you'd create such a secrets file yourself and use that to deploy all nodes, probably with that master node first of that is required.
 But if the software does not allow that, then your proposed way is the best solution I think. 


--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/076fc5ce-519d-4941-a660-34adc59000c7n%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages