mac-setup/install/dmg.yaml

13 lines
576 B
YAML

---
- name: Download $app_name_pretty
get_url: url=$app_url dest=$downloads/$app_name.dmg
- name: Mount $app_name_pretty image
command: hdiutil attach $app_name.dmg chdir=$downloads
- name: Copy $app_name_pretty app to Applications directory
command: cp -R ${mount_path}$app_name.app /Applications
when_string: $installer_type == 'app'
- name: Install $app_name pkg
command: sudo installer -package ${mount_path}$app_name.pkg -target $install_target
when_string: $installer_type == 'pkg'
- name: Unmount $app_name_pretty image
command: hdiutil detach $mount_path