以下のようなエラーでansibleが動かない
[WARNING]: Skipping plugin (/usr/local/var/pyenv/versions/3.7.3/envs/ansible2.7/lib/python3.7/site-packages/ansible/plugins/callback/grafana_annotations.py) as it seems to be invalid: module urllib.request' has no attribute'HTTPSHandler'
以下のようなことを行った
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
$ cd /path/to/ansible_project $ pyenv virtualenv 3.9.? ansible2.9@py3.9 $ pyenv local ansible2.9@py3.9 $ pip install "ansible==2.9.*"