-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump ansible from 2.9.20 to 2.10.7 #928
Conversation
This is required for Ubuntu 20, due to ansible/ansible#68536 |
A workaround was to comment out this line. We should be able to re-instate it with this upgrade: |
Okay, linting disabled. CI doesn't cover everything. @dacook, you could try to run the next provisioning with this branch? |
@mkllnk I just noticed that we don't have an upgrade method documented for ansible. I think the best fix is to simply move that command to after the |
FYI @mkllnk I got this message: I got interrupted, but will try the suggested steps soon and hopefully it will be fine. |
I would delete the current virtualenv and start again:
We could include the Ansible version in the virtualenv name to avoid conflicts... |
Sure, I've done that instead. |
Tested on ca_prod2:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of notes, but I don't think worth changing. Good to go.
@@ -80,7 +80,7 @@ Run the [ansible-lint](https://github.com/willthames/ansible-lint) checks using: | |||
ansible-lint site.yml --exclude=community | |||
``` | |||
|
|||
This is also run in CI. | |||
~~~This is also run in CI.~~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI Markdown strikeouts only need two tildes each side. But the intent is still clear.
- name: Ansible Lint | ||
run: ansible-lint playbooks/*.yml --exclude community | ||
# - name: Ansible Lint | ||
# run: ansible-lint playbooks/*.yml --exclude community |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if there's a way we could configure it to always skip. Then it would still show in GitHub as an action that doesn't run (and hence remind there's something broken to fix one day)
Deployed on uk_staging, but the other staging servers are older and it doesn't work:
I'm not sure it's worth investigating further right now. |
Looks like a different problem we should solve:
|
If we want to keep using Ansible, we need to update to a modern version, supporting current versions of Python. This is just a first step.
Related:
Dev notes
It may be necessary to remove the old version of Ansible entirely. This will do the trick: