ansible-collection-mac
ansible-collection-mac copied to clipboard
fail when password is incorrect.
I have noticed that if i am fat-fingered, and type in my complex password wrong, the playbook hangs on the task to check permissions on the homebrew dir. Maybe check if the password is correct and fail if not.
For instance: https://stackoverflow.com/questions/50562707/can-ansible-check-if-password-is-correct-before-running-playbook
I also stumbled on this. I ended up creating the following task as a workaround:
- name: Test password. If timeouts try again.
ansible.builtin.command: ls /
become: true
changed_when: false
timeout: 1
Besides the obvious issue that it is a hack - it is triggered every time even when the playbook is ran without -K
flag. Is there a way to skip such check?
The reason of adding -K
when using this collection is the homebrew setup, correct? It would be great if there is a config or tag that can skip the sudo operations and just install the listed packages. This will make it easier to install just a few packages after initial setup. Is it possible and is it a good idea?
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.