Skip to content

Commit

Permalink
debian: Fix test failed after bullseye release (#7888)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtsp authored Aug 19, 2021
1 parent c7d12cd commit 7916649
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions roles/bootstrap-os/tasks/bootstrap-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@
when:
- need_bootstrap.rc != 0

- name: Update Apt cache
raw: apt-get update --allow-releaseinfo-change
become: true
when:
- '''ID=debian'' in os_release.stdout_lines'
- (
'''VERSION="10'' in os_release.stdout_lines' or
'''VERSION="11'' in os_release.stdout_lines'
)
register: bootstrap_update_apt_result
changed_when:
- '"changed its" in bootstrap_update_apt_result.stdout'
- '"value from" in bootstrap_update_apt_result.stdout'
ignore_errors: true

- name: Set the ansible_python_interpreter fact
set_fact:
ansible_python_interpreter: "/usr/bin/python3"
Expand Down

0 comments on commit 7916649

Please sign in to comment.