From 16c39e39c13896b21c6d75248edc21cd6f3d8a82 Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:42:17 -0400 Subject: [PATCH] Fix variable names in the python Ansible playbook These variables need the role prefixed to them to be correctly interpreted when the role is run. --- packer/ansible/python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packer/ansible/python.yml b/packer/ansible/python.yml index 3d9175be..01795b09 100644 --- a/packer/ansible/python.yml +++ b/packer/ansible/python.yml @@ -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.