diff --git a/group_vars/irc.yml b/group_vars/thelounge.yml similarity index 100% rename from group_vars/irc.yml rename to group_vars/thelounge.yml diff --git a/hosts b/hosts index d7bde7ff..c1246405 100644 --- a/hosts +++ b/hosts @@ -64,7 +64,6 @@ horde.adm.crans.org [irc] irc.adm.crans.org -zamok.adm.crans.org [keepalived:children] routeurs_vm @@ -126,6 +125,10 @@ routeur-daniel.adm.crans.org routeur-jack.adm.crans.org routeur-sam.adm.crans.org +[thelounge] +irc.adm.crans.org +zamok.adm.crans.org + [virtu] daniel.adm.crans.org jack.adm.crans.org diff --git a/plays/irc.yml b/plays/irc.yml index ab253706..348f9d26 100755 --- a/plays/irc.yml +++ b/plays/irc.yml @@ -1,11 +1,15 @@ #!/usr/bin/env ansible-playbook --- -- hosts: irc +- hosts: thelounge + vars: + thelounge: '{{ glob_thelounge | default({}) | combine(loc_thelounge | default({})) }}' + roles: + - thelounge + +- hosts: thelounge,!adh_server vars: certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}' nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}' - thelounge: '{{ glob_thelounge | default({}) | combine(loc_thelounge | default({})) }}' roles: - certbot - nginx - - thelounge