Skip to content

Commit

Permalink
ansible: remove scaleway hosts apt workaround
Browse files Browse the repository at this point in the history
Hosts at scaleway were removed from the inventory so there are no
longer any matching hosts.
  • Loading branch information
richardlau committed Apr 29, 2021
1 parent e028b22 commit 5b9b068
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions ansible/roles/package-upgrade/tasks/partials/apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,9 @@
#

- name: upgrade installed packages
when: "'scaleway-ubuntu1804-armv7l' not in inventory_hostname"
apt: upgrade=dist update_cache=yes

# kernel upgrades on the scaleway hosts are dicey
# see https://github.com/scaleway/image-ubuntu/issues/132 for kernel woes
- name: upgrade installed packages (safe)
when: "'scaleway-ubuntu1804-armv7l' in inventory_hostname"
apt: upgrade=safe update_cache=yes
environment:
FLASH_KERNEL_SKIP: true
apt:
update_cache: yes
upgrade: dist

- name: clean unwanted packages
apt:
Expand Down

0 comments on commit 5b9b068

Please sign in to comment.