Skip to content

Conversation

@LoupX
Copy link
Collaborator

@LoupX LoupX commented Dec 29, 2025

By having loops instead all the list at once, allows to "skip" is an app already exists, instead of failing the whole task

I.E. If you already installed iTerm and after that you run osx, when it reaches Installing cask applications it will fail all with (item=iterm2) => {"ansible_loop_var": "item", "changed": false, "item": "iterm2", "msg": "Error: It seems there is already an App at '/Applications/iTerm.app'."}

With a loop, it "fails" but will continue with the next on the list.

By having loops instead all the list at once, allows to "skip" is an app already exists, instead of failing the whole task

I.E. If you already installed iTerm and after that you run _osx_, when it reaches _Installing cask applications_ it will fail all with 
`(item=iterm2) => {"ansible_loop_var": "item", "changed": false, "item": "iterm2", "msg": "Error: It seems there is already an App at '/Applications/iTerm.app'."}`

With a loop, it "fails" but will continue with the next on the list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants