diff --git a/default.config.yml b/default.config.yml index ff19fe3..e1fbc11 100644 --- a/default.config.yml +++ b/default.config.yml @@ -74,3 +74,7 @@ mas_email: "" mas_password: "" osx_script: "~/.osx --no-restart" + +# Glob pattern to ansible task files that will run after all other tasks have +# finished. +post_provision_tasks: [] diff --git a/main.yml b/main.yml index f0b68f5..6986392 100644 --- a/main.yml +++ b/main.yml @@ -27,3 +27,9 @@ - include: tasks/osx.yml when: configure_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) }}"