harvard-web-publishing / mac-dev-playbook

Mac setup and configuration via Ansible.
Other
0 stars 0 forks source link

Add pre-flight checks #7

Open benjifisher opened 10 months ago

benjifisher commented 10 months ago

It is annoying if the playbook runs for a while and then runs into an error. You have to fix the error and then start again. We can also provide more helpful error messages.

Maybe we can pick up where we left off with ansible-playbook --start-at-task.... This needs testing and documentation.

For example, the dotfiles role will quit if the dotfiles repo is already cloned locally and there are uncommitted changes.

benjifisher commented 8 months ago

Also, the tasks to install GUI packages (casks) with Homebrew will cause the playbook to fail if the package is already installed. (Probably it will pass if the package was installed previously with Homebrew. Testing needed.)

Let's check for the existence of packages and skip them instead of failing if they are already present.