X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/88cc8cf7fedf35cd51c29dcadac94f288c08b22b..66aa304494ab0ed1c42e1cfad2497616ae8301d1:/site.yml diff --git a/site.yml b/site.yml index 0d82190..d503df3 100644 --- a/site.yml +++ b/site.yml @@ -1,3 +1,13 @@ +# Dependencies are "expressed" by the hosts file, e.g. +# ``` +# [email:children] +# journalwatch +# [letsencrypt:children] +# prosody +# ``` +# 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 +16,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 @@ -21,8 +47,17 @@ - bind tags: bind +- hosts: etherpad + gather_facts: no + roles: + - etherpad + tags: etherpad + - hosts: prosody + # depends: letsencrypt gather_facts: no + pre_tasks: + - setup: roles: - prosody tags: prosody