Skip to content

Commit

Permalink
Fix debian 9 check for apt cache update
Browse files Browse the repository at this point in the history
  • Loading branch information
floryut committed Nov 19, 2021
1 parent 83e0b78 commit 86ff924
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions roles/bootstrap-os/tasks/bootstrap-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@
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'
)
- '''VERSION_ID="10"'' in os_release.stdout_lines or ''VERSION_ID="11"'' in os_release.stdout_lines'
register: bootstrap_update_apt_result
changed_when:
- '"changed its" in bootstrap_update_apt_result.stdout'
Expand Down

0 comments on commit 86ff924

Please sign in to comment.