-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Move to Ansible 3.4.0 #7672
Merged
k8s-ci-robot
merged 7 commits into
kubernetes-sigs:master
from
simplekube-ro:ansible_2.10
Jul 12, 2021
Merged
Move to Ansible 3.4.0 #7672
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ace98c2
Ansible: move to Ansible 3.4.0 which uses ansible-base 2.10.10
cristicalin b351e06
Docs: add a note about ansible upgrade post 2.9.x
cristicalin 13c651c
CI: ensure ansible is removed before ansible 3.x is installed to avoi…
cristicalin 3a4e548
Ansible: use newer ansible-lint
cristicalin 9d1b4ea
Fix ansible-lint 5.0.11 found issues
cristicalin 1a4cb7b
Mitogen: use 0.3.0rc1 which adds support for ansible 2.10+
cristicalin 7ac73a9
Pin ansible-base to 2.10.11 to get package fix on RHEL8
cristicalin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
template: | ||
src: inventory.j2 | ||
dest: "{{ playbook_dir }}/inventory" | ||
mode: 0644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
contrib/network-storage/glusterfs/roles/glusterfs/server/tests/test.yml
This file was deleted.
Oops, something went wrong.
5 changes: 4 additions & 1 deletion
5
contrib/network-storage/heketi/roles/provision/tasks/bootstrap/deploy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 24 additions & 24 deletions
48
contrib/network-storage/heketi/roles/tear-down/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
--- | ||
- name: "Remove storage class." # noqa 301 | ||
- name: Remove storage class. # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete storageclass gluster" | ||
ignore_errors: true | ||
- name: "Tear down heketi." # noqa 301 | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Tear down heketi. # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete all,service,jobs,deployment,secret --selector=\"glusterfs=heketi-pod\"" | ||
ignore_errors: true | ||
- name: "Tear down heketi." # noqa 301 | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Tear down heketi. # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete all,service,jobs,deployment,secret --selector=\"glusterfs=heketi-deployment\"" | ||
ignore_errors: true | ||
- name: "Tear down bootstrap." | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Tear down bootstrap. | ||
include_tasks: "../../provision/tasks/bootstrap/tear-down.yml" | ||
- name: "Ensure there is nothing left over." # noqa 301 | ||
- name: Ensure there is nothing left over. # noqa 301 | ||
command: "{{ bin_dir }}/kubectl get all,service,jobs,deployment,secret --selector=\"glusterfs=heketi-pod\" -o=json" | ||
register: "heketi_result" | ||
until: "heketi_result.stdout|from_json|json_query('items[*]')|length == 0" | ||
retries: 60 | ||
delay: 5 | ||
- name: "Ensure there is nothing left over." # noqa 301 | ||
- name: Ensure there is nothing left over. # noqa 301 | ||
command: "{{ bin_dir }}/kubectl get all,service,jobs,deployment,secret --selector=\"glusterfs=heketi-deployment\" -o=json" | ||
register: "heketi_result" | ||
until: "heketi_result.stdout|from_json|json_query('items[*]')|length == 0" | ||
retries: 60 | ||
delay: 5 | ||
- name: "Tear down glusterfs." # noqa 301 | ||
- name: Tear down glusterfs. # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete daemonset.extensions/glusterfs" | ||
ignore_errors: true | ||
- name: "Remove heketi storage service." # noqa 301 | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Remove heketi storage service. # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete service heketi-storage-endpoints" | ||
ignore_errors: true | ||
- name: "Remove heketi gluster role binding" # noqa 301 | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Remove heketi gluster role binding # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete clusterrolebinding heketi-gluster-admin" | ||
ignore_errors: true | ||
- name: "Remove heketi config secret" # noqa 301 | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Remove heketi config secret # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete secret heketi-config-secret" | ||
ignore_errors: true | ||
- name: "Remove heketi db backup" # noqa 301 | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Remove heketi db backup # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete secret heketi-db-backup" | ||
ignore_errors: true | ||
- name: "Remove heketi service account" # noqa 301 | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Remove heketi service account # noqa 301 | ||
command: "{{ bin_dir }}/kubectl delete serviceaccount heketi-service-account" | ||
ignore_errors: true | ||
- name: "Get secrets" | ||
ignore_errors: true # noqa ignore-errors | ||
- name: Get secrets | ||
command: "{{ bin_dir }}/kubectl get secrets --output=\"json\"" | ||
register: "secrets" | ||
changed_when: false | ||
- name: "Remove heketi storage secret" | ||
- name: Remove heketi storage secret | ||
vars: { storage_query: "items[?metadata.annotations.\"kubernetes.io/service-account.name\"=='heketi-service-account'].metadata.name|[0]" } | ||
command: "{{ bin_dir }}/kubectl delete secret {{ secrets.stdout|from_json|json_query(storage_query) }}" | ||
when: "storage_query is defined" | ||
ignore_errors: true | ||
ignore_errors: true # noqa ignore-errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This seems to be the opposite of the condition before the change.
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.
Wow man, thanks we missed that.