-
Notifications
You must be signed in to change notification settings - Fork 35
HOWTOs
Steve Brasier edited this page Jul 1, 2021
·
31 revisions
Hooks from parent environment's don't get run by default as site.yml relies on APPLIANCES_ENVIRONMENT_ROOT
to find them. But you can explicitly run them using :
# environments/child/hooks/pre/yml
- name: Import parent hook
vars:
appliances_environment_root: "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}"
import_playbook: "{{ appliances_environment_root }}/../parent/hooks/pre.yml"
where child
and parent
are the environment names.