mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-21 19:33:03 +00:00
Add support for post-provision tasks
This commit is contained in:
parent
3c4d796178
commit
6fafb251b1
2 changed files with 10 additions and 0 deletions
|
@ -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: []
|
||||
|
|
6
main.yml
6
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) }}"
|
||||
|
|
Loading…
Reference in a new issue