X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/0aacb9f875a40b18dfbbc01b705b5337bf872368..fecf6724bb026a4891a89c33356870f83bcd76ee:/site.yml?ds=inline diff --git a/site.yml b/site.yml index 3c5fe4e..f7fbc70 100644 --- a/site.yml +++ b/site.yml @@ -1,3 +1,12 @@ +# Dependencies are "expressed" by the hosts file, e.g. +# ``` +# [letsencrypt:children] +# apache +# email +# ``` +# I tried using role dependencies but that doesn't interact well with tags: +# When restricting to a tag, its dependencies still get played. + - hosts: all gather_facts: no pre_tasks: @@ -6,14 +15,30 @@ - base tags: base +- hosts: unbound + gather_facts: no + roles: + - unbound + tags: unbound + - hosts: letsencrypt gather_facts: no roles: - letsencrypt tags: letsencrypt -# FIXME make this a role, or several -- import_playbook: email.yml +- hosts: email + gather_facts: no + roles: + - email + tags: email + +- hosts: journalwatch + # depends: email + gather_facts: no + roles: + - journalwatch + tags: journalwatch - hosts: bind gather_facts: no @@ -28,7 +53,10 @@ tags: etherpad - hosts: prosody + # depends: letsencrypt gather_facts: no + pre_tasks: + - setup: roles: - prosody tags: prosody