Skip to content

Commit

Permalink
Merge branch 'main' into mep-no-apache
Browse files Browse the repository at this point in the history
  • Loading branch information
quadrismegistus committed Dec 12, 2023
2 parents 4eeefaa + 1c5ac61 commit 4201986
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 4201986

Please sign in to comment.