Add support for post-provision tasks

This commit is contained in:
Oskar Schöldström 2017-05-31 10:07:42 -05:00
parent 3c4d796178
commit 6fafb251b1
2 changed files with 10 additions and 0 deletions

View file

@ -74,3 +74,7 @@ mas_email: ""
mas_password: "" mas_password: ""
osx_script: "~/.osx --no-restart" osx_script: "~/.osx --no-restart"
# Glob pattern to ansible task files that will run after all other tasks have
# finished.
post_provision_tasks: []

View file

@ -27,3 +27,9 @@
- include: tasks/osx.yml - include: tasks/osx.yml
when: configure_osx 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) }}"