Add allow_empty_roles to control aborting on roles with no hosts.

This added flexibility allows you to define base roles that might not
necessarily exist in each deploy destination.
This commit is contained in:
Matthew Kent
2023-11-12 08:33:08 -08:00
parent 073f745677
commit 60187cc3a4
3 changed files with 32 additions and 6 deletions

View File

@@ -91,3 +91,8 @@ registry:
# Caution: there's no support for role renaming yet, so be careful to cleanup
# the previous role on the deployed hosts.
# primary_web_role: web
# Controls if we abort when see a role with no hosts. Disabling this may be
# useful for more complex deploy configurations.
#
# allow_empty_roles: false