samdoran / ansible-collection-macos

Ansible collection of roles and modules for use on macOS
8 stars 2 forks source link

Current parallels install from scratch expects `prlctl` to be pre-existing #40

Open webknjaz opened 1 month ago

webknjaz commented 1 month ago
TASK [samdoran.macos.parallels : Ensure the Parallels Desktop app is not running] **********************************************************************************************************************

fatal: [xxxxxxxxx-xx]: FAILED! => {"changed": false, "msg": "Failed to find required executable \"prlctl\" in paths: /usr/local/bin/:/usr/bin:/bin:/usr/sbin:/sbin"}

$sbj is happening on new host. There's probably several ways of addressing this:

For me, this sounds like a possible excuse to build modules around pkgutil (which would also help with #4 and #38).

webknjaz commented 1 month ago

Here's what it looks like when present:

administrator@xxxxxxxxx-xx:~$ pkgutil --packages | grep -i parall
com.parallels.autodeploy.package
com.parallels.pkg.sdk
administrator@xxxxxxxxx-xx:~$ pkgutil --pkg-info=com.parallels.autodeploy.package
package-id: com.parallels.autodeploy.package
version: 19.2.0
volume: /
location: 
install-time: 1707501721
administrator@xxxxxxxxx-xx:~$ pkgutil --pkg-info=com.parallels.pkg.sdk
package-id: com.parallels.pkg.sdk
version: 19.2.1.54832
volume: /
location: /
install-time: 1707506140