Skip to content

Commit

Permalink
Fix variable names in the python Ansible playbook
Browse files Browse the repository at this point in the history
These variables need the role prefixed to them to be correctly
interpreted when the role is run.
  • Loading branch information
mcdonnnj committed Oct 16, 2023
1 parent d12a105 commit 16c39e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packer/ansible/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
vars:
# Install pip2 for all images that will run Python 2 CyHy code.
# Right now these are the dashboard, mongo, and reporter AMIs.
install_pip2: "{{ inventory_hostname_short is in ['dashboard', 'mongo', 'reporter'] }}"
pip_install_pip2: "{{ inventory_hostname_short is in ['dashboard', 'mongo', 'reporter'] }}"
- role: python
vars:
# Install Python 2 for images that will run Python 2 CyHy code.
# Right now these are the dashboard, mongo, and reporter AMIs.
install_python2: "{{ inventory_hostname_short is in ['dashboard', 'mongo', 'reporter'] }}"
python_install_python2: "{{ inventory_hostname_short is in ['dashboard', 'mongo', 'reporter'] }}"

# Any instances that are not built on Amazon Linux 2 and don't require
# Python 2 should have it removed.
Expand Down

0 comments on commit 16c39e3

Please sign in to comment.