debian: Fix test failed after bullseye release (#7888)
This commit is contained in:
parent
c7d12cddec
commit
79166496f3
1 changed files with 15 additions and 0 deletions
|
@ -51,6 +51,21 @@
|
||||||
when:
|
when:
|
||||||
- need_bootstrap.rc != 0
|
- 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
|
- name: Set the ansible_python_interpreter fact
|
||||||
set_fact:
|
set_fact:
|
||||||
ansible_python_interpreter: "/usr/bin/python3"
|
ansible_python_interpreter: "/usr/bin/python3"
|
||||||
|
|
Loading…
Reference in a new issue