From afd3e44618f19b90f5179a915c3b8683ed080c47 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Mon, 5 Dec 2022 21:52:25 +0100 Subject: [PATCH] Split up play into more groups --- plays/system.yml | 18 ++++++++++++------ production | 8 ++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/plays/system.yml b/plays/system.yml index 0b590b1..3c49da1 100644 --- a/plays/system.yml +++ b/plays/system.yml @@ -1,19 +1,25 @@ --- -- name: "play : system : ups, smart, zfs : yggdrasil" - hosts: "yggdrasil" +- name: "play : system : ups" + hosts: "ups" roles: - role: "system_ups" tags: "role:system_ups" + +- name: "play : system : smart" + hosts: "smart" + roles: + - role: "system_smart" vars: smartd_conf_file_path: "files/system_smart/smartd.conf" - when: the_nine_worlds_production | bool - - role: "system_smart" tags: "role:system_smart" - when: the_nine_worlds_production | bool + +- name: "play : system : zfs" + hosts: "zfs" + roles: - role: "system_zfs" tags: "role:system_zfs" -- name: "play : system : mail, base : all" +- name: "play : system : all" hosts: "all" roles: - role: "system_mail" diff --git a/production b/production index cda9e50..69f102c 100644 --- a/production +++ b/production @@ -31,6 +31,14 @@ valkyrie # Special. # -------------------------------------------------------------------------------------------------- +# Hosts running with a UPS. +[ups] +yggdrasil + +# Hosts running with SMART Disk Monitoring Daemon. +[smart] +yggdrasil + # Hosts running with ZFS. [zfs] yggdrasil