cd configuration
pip install -r requirements.txt
env

ansible="ansible first_in_tag_Name_${environment}-${deployment}-worker -i playbooks/ec2.py -u ubuntu -s -U www-data -a"
manage="/edx/bin/python.edxapp /edx/bin/manage.edxapp lms change_enrollment --settings aws"

if [ "$noop" = true ]; then
  $ansible "$manage --noop --course $course --user $name --to $to --from $from"
else
  $ansible "$manage --course $course --user $name --to $to --from $from"
fi

cd configuration
pip install -r requirements.txt
env

ansible="ansible first_in_tag_Name_${environment}-${deployment}-worker -i playbooks/ec2.py -u ubuntu -s -U www-data -a"
manage="/edx/bin/python.edxapp /edx/bin/manage.edxapp lms change_enrollment --settings=aws"
noop=""

if [ "$noop" = true ]; then
  noop="--noop"  
fi

$ansible "$manage $noop --course $course --user $name --to $to --from $from"

Add important =, dry out.
Add important =, dry out.
