Skip to content

Commit

Permalink
Adjust steps that are failing on bionic VMs (#167)
Browse files Browse the repository at this point in the history
* Adjust steps that are failing on bionic VMs

* Conditionally turn off more update cache calls for bionic
  • Loading branch information
rlskoeser authored Dec 12, 2023
1 parent 6bbf5b5 commit 1c5ac61
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion roles/build_dependencies/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
apt:
name: "{{ common_dependencies + app_dependencies }}"
state: present
update_cache: true
# update cache fails on bionic because postgres no longer has a release
# only update cache on newer VMs; skip updating on older vms
update_cache: "{{ ansible_distribution_version != '18.04' }}"
changed_when: false
when: ansible_distribution == 'Ubuntu'

Expand Down
4 changes: 3 additions & 1 deletion roles/postgresql/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
ansible.builtin.apt:
name: "{{ item }}"
state: present
update_cache: true
# update cache fails on bionic because postgres no longer has a release
# only update cache on newer VMs; skip updating on older vms
update_cache: "{{ ansible_distribution_version != '18.04' }}"
loop:
- libpq-dev
- python3-dev
Expand Down
2 changes: 1 addition & 1 deletion roles/python/tasks/install_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
virtualenv_command: python{{ python_version }} -m venv --prompt "{{ python_venv_prompt }}"
name:
- pip
- setuptools
# - setuptools
state: latest

- name: Downgrade setuptools if 2to3 is required
Expand Down
4 changes: 3 additions & 1 deletion roles/python/tasks/install_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@
- python{{ python_version }}-venv
- python{{ python_version }}-distutils
state: latest
update_cache: true
# update cache fails on bionic because postgres no longer has a release
# only update cache on newer VMs; skip updating on older vms
update_cache: "{{ ansible_distribution_version != '18.04' }}"

0 comments on commit 1c5ac61

Please sign in to comment.