Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove custom python interpreter path #987

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions inventory/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,6 @@ nginx_configs:
upstream:
- upstream rails { server unix:{{ puma_sock }} fail_timeout=0; }

# Set python interpeter to the symlink created by setup
ansible_python_interpreter: '/usr/bin/python'

template_notice: |
# Managed via ofn-install, any changes will be overwritten.
# Please notify @devs of any changes in [#devops](https://openfoodnetwork.slack.com/archives/CEBMTRCNS) (But do not share secrets in public channel!)
5 changes: 2 additions & 3 deletions playbooks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
- name: Install python
become: yes
raw: |
test -e /usr/bin/python || (
test -e /usr/bin/python3 || (
apt-get update -qq &&\
apt-get install -q --yes python3 &&\
ln -s /usr/bin/python3 /usr/bin/python
apt-get install -q --yes python3
)
register: python_install
changed_when: python_install.stdout == ""
Expand Down