host_vars/mailman.unixathome.org:
---
mailman_vhosts:
- vhost: lists.freebsddiary.org
- vhost: lists.freshsource.org
.... etc
I would like to install an ssl-certificate for each vhost and I already have a role which does that (see below).
I'm not quite sure how to invoke one task within another task. Is this a sign I'm doing it wrong?
FYI:
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
mailman-vhosts.yml
---
- hosts: mailman_vhosts
sudo: yes
roles:
- ssl-certificates
Works lovely. Very simple too.