Create Multiple Nginx Virtual Hosts with one Ansible role

328 views
Skip to first unread message

Arbab Nazar

unread,
Dec 4, 2015, 10:11:45 AM12/4/15
to Ansible Project
Hi,

How I can Create Multiple Nginx Virtual Hosts with one Ansible role, can someone give me an idea?

Thanks,

Brian Coca

unread,
Dec 4, 2015, 10:23:24 AM12/4/15
to Ansible Project

2 ways, have the role take  a list of vhost configs and loop over them. Or have it take a single one and call it once per vhost.

Adithya Khamithkar

unread,
Dec 4, 2015, 10:36:48 AM12/4/15
to Ansible Project
You can name the virtual hosts differently and you can use the template function.
Reply all
Reply to author
Forward
0 new messages