one task wants to use another.. I think.

I have a role for installing ssl certificates.

I also have a playbook for installing an instance of mailman with various vhosts. One such host like this:

host_vars/mailman.unixathome.org:

Tonight I figured it out. Starting thinking in terms of hosts, not vhosts. I added this to the hosts file:

In the hosts file I had this:

[mailman_vhosts]
a.example.org
b.example.org
c.example.org
d.example.org

for now, each mailman vhost lives on the same server, mailman.vpn.example.org

[mailman_vhosts:vars]
ansible_ssh_host=mailman.vpn.example.org

Then, now that I have listed each vhost which needs an ssl cert added to the server, I created this:

mailman-vhosts.yml