appsembler / configuration

a simple, but flexible, way for anyone to stand up an instance of the edX platform that is fully configured and ready-to-go
GNU Affero General Public License v3.0
14 stars 13 forks source link

eliminate some warnings about duplicate `when` fields #401

Closed thraxil closed 2 years ago

thraxil commented 2 years ago

couple warnings during the deploy:

Step #8 - "build and run ansible": [WARNING]: While constructing a mapping from
Step #8 - "build and run ansible": /workspace/configuration/playbooks/roles/aws/tasks/main.yml, line 27, column 3,
Step #8 - "build and run ansible": found a duplicate dict key (when). Using last defined value only.
...
Step #8 - "build and run ansible": [WARNING]: While constructing a mapping from
Step #8 - "build and run ansible": /workspace/configuration/playbooks/roles/edx_django_service/tasks/main.yml,
Step #8 - "build and run ansible": line 125, column 3, found a duplicate dict key (when). Using last defined value
Step #8 - "build and run ansible": only.

We've got multiple when fields on those tasks. For the aws one, I merge the two. For the edx_django_service one, I just deleted one that was already included in the other clause.