diff --git a/default.config.yml b/default.config.yml index ff19fe3..18da7b2 100644 --- a/default.config.yml +++ b/default.config.yml @@ -74,3 +74,6 @@ mas_email: "" mas_password: "" osx_script: "~/.osx --no-restart" + +# Glob pattern to ansible task files to run after all other tasks are finished. +post_provision_tasks: [] diff --git a/main.yml b/main.yml index 6133f8e..1998870 100644 --- a/main.yml +++ b/main.yml @@ -32,3 +32,9 @@ - include: tasks/osx.yml when: configure_osx tags: ['osx'] + + - name: Run configured post-provision ansible task files. + include: "{{ outer_item }}" + loop_control: + loop_var: outer_item + with_fileglob: "{{ post_provision_tasks|default(omit) }}"