You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I may be way off in the way I'm trying to accomplish this, but I think I need to pass variables from one role to another.
I am setting up svn on a Suse server. I'm using the geerlingguy.apache and a rather modified geerlingguy.svn roles. I need the apache role available to deploy apache with various vhosts across a number of servers. So, my thought is that the vhosts should not be in the apache role, but in roles for the various different services that use apache, svn being one of them. So, I'd like to basically use the roles and templates from the apache role in the svn role.
Alternatively, I think I would put all the various vhost configurations into the apache role and somehow determine which one goes on which server. Unsure how to do that.
Looking for the best way forward since this idea will carry over into other roles as well and I want to get the structure correct. Thanks!
Dick Davies
unread,
Feb 28, 2017, 1:23:45 PM2/28/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible list
If you load the apache role in a play and then your vhosts role, you should be
able to use apache role vars (or set in defaults/ ) in the vhosts role, so long
as both roles are in the same play.
(we just did exactly this this afternoon, so let me know if it's not happening
for any reason).