From 134216c7f1cf7166070df34f770c665446d4867f Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 19 May 2018 10:01:53 +0200 Subject: [PATCH] gather most of the playbooks in one and just use tags the email playbook is still a mess... --- base.yml | 4 ---- dns.yml | 3 --- jabber.yml | 3 --- roles/postfix/tasks/postfix.yml | 1 + site.yml | 30 ++++++++++++++++++++++++++---- web.yml | 6 ------ 6 files changed, 27 insertions(+), 20 deletions(-) delete mode 100644 base.yml delete mode 100644 dns.yml delete mode 100644 jabber.yml delete mode 100644 web.yml diff --git a/base.yml b/base.yml deleted file mode 100644 index f5835a9..0000000 --- a/base.yml +++ /dev/null @@ -1,4 +0,0 @@ -# basic system preparation -- hosts: all - roles: - - base diff --git a/dns.yml b/dns.yml deleted file mode 100644 index 780bf21..0000000 --- a/dns.yml +++ /dev/null @@ -1,3 +0,0 @@ -- hosts: bind - roles: - - bind diff --git a/jabber.yml b/jabber.yml deleted file mode 100644 index 665c29d..0000000 --- a/jabber.yml +++ /dev/null @@ -1,3 +0,0 @@ -- hosts: prosody - roles: - - prosody diff --git a/roles/postfix/tasks/postfix.yml b/roles/postfix/tasks/postfix.yml index 62b2054..bda2256 100644 --- a/roles/postfix/tasks/postfix.yml +++ b/roles/postfix/tasks/postfix.yml @@ -36,6 +36,7 @@ - virtual_alias_map - transport_map - name: give postfix user access to opendkim + # we assume the user alredy exists (it is created above by installing postfix) when: postfix.opendkim is defined user: name: postfix diff --git a/site.yml b/site.yml index 092d8d4..bc19efe 100644 --- a/site.yml +++ b/site.yml @@ -1,6 +1,28 @@ -- import_playbook: base.yml +- hosts: all + roles: + - base + tags: base + - import_playbook: upgrade.yml -- import_playbook: dns.yml + +- hosts: letsencrypt + roles: + - letsencrypt + tags: letsencrypt + - import_playbook: email.yml -- import_playbook: jabber.yml -- import_playbook: web.yml + +- hosts: bind + roles: + - bind + tags: bind + +- hosts: prosody + roles: + - prosody + tags: prosody + +- hosts: apache + roles: + - apache + tags: apache diff --git a/web.yml b/web.yml deleted file mode 100644 index 2d55576..0000000 --- a/web.yml +++ /dev/null @@ -1,6 +0,0 @@ -- hosts: letsencrypt - roles: - - letsencrypt -- hosts: apache - roles: - - apache -- 2.30.2