shadow-robot / aurora

Next generation tools
GNU General Public License v2.0
9 stars 6 forks source link

Update main.yml #583

Closed carebare47 closed 6 months ago

carebare47 commented 6 months ago

Proposed changes

Can't replicate this error

TASK [docker/ecr : Fix pip3 cryptography issue] ***********************************************************************************************************************************************************
task path: /tmp/aurora/ansible/roles/docker/ecr/tasks/main.yml:146
fatal: [10.9.11.2]: FAILED! => {"msg": "The conditional check 'ansible_failed_result.module_stderr | regex_search(\"module 'lib' has no attribute 'X509_V_FLAG_.*\")' failed. The error was: error while evaluating conditional (ansible_failed_result.module_stderr | regex_search(\"module 'lib' has no attribute 'X509_V_FLAG_.*\")): 'dict object' has no attribute 'module_stderr'\n\nThe error appears to be in '/tmp/aurora/ansible/roles/docker/ecr/tasks/main.yml': line 146, column 13, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n          # And we do it with a raw command because the apt module doesn't work because it tries to use the openssl library from the host.\n          - name: Fix pip3 cryptography issue\n            ^ here\n"}

There is a similar chunk of ansible in aurora/ansible/playbooks/install_python3.yml that does something similar but works. Not been able to reproduce this error in this role but it does show up occasionally. Maybe this will stop that happening?

Checklist

Before posting a PR ensure that from each of the below categories AT LEAST ONE BOX HAS BEEN CHECKED. If more than one category is applicable then more can be checked. Also ensure that the proposed changes have been filled out with relevant information for reviewers.

Tests

Documentation