Skip to content

Commit

Permalink
Fix dumb apt
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Nov 29, 2023
1 parent 12a0594 commit b7890ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions tasks/apt_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Update apt cache
apt:
update_cache: true
register: noobient_apt_cache_updated
6 changes: 0 additions & 6 deletions tasks/deps.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
---
# Fix dumb apt
- name: Update apt cache
apt:
update_cache: true
when: ansible_os_family == 'Debian'

# TODO On EL, cURL is installed by default. On top of that, on AlmaLinux 9, curl
# is broken, and on Fedora, curl-minimal is broken. So just skip it altogether.
# https://bugs.launchpad.net/tripleo/+bug/1953156
Expand Down
3 changes: 3 additions & 0 deletions tasks/main2.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
- include_tasks: apt_cache.yml
when: ansible_pkg_mgr == 'apt' and noobient_apt_cache_updated is not defined

- include_tasks: deps.yml
when: installed_acme_deps is not defined

Expand Down

0 comments on commit b7890ad

Please sign in to comment.