mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2025-02-16 12:38:28 +00:00
Merge pull request #43 from generoi/issue-35
Issue #35: Add support for post-provision tasks
This commit is contained in:
commit
2f43db9439
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…
Add table
Reference in a new issue