-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mise à jour OPS - tentative de correction du déploiement sur eclipse #203
Conversation
7582785
to
b54eabe
Compare
@@ -10,14 +10,16 @@ | |||
- name: Install ansible on host | |||
ansible.builtin.pip: | |||
name: ansible | |||
extra_args: "--break-system-packages" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With Python 3.11, this snippet will error out, as pip will refuse to install packages alongside the system's. The fix is to tell pip it's OK to "break" your system packages, either using the --break-system-packages parameter, or the PIP_BREAK_SYSTEM_PACKAGES=1 environment variable
L'explication me parait pas très rassurante, après on est sur la préproduction, on peux tester et voir ce que cela donne.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je n'arrive pas à comprendre pourquoi il y a des version différentes de python entre eclipse et equinoxe et pourquoi il y a ce message. La seule solution que j'ai trouvé pour que la CD passe c'est d'ajouter cet argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je viens de retester sans cet argument, ça ne passe pas hélas
47de1d0
to
52ce4cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je te propose de tenter comme ça et itérer...
extra_args: "--break-system-packages"
=> permettrait de corriger l'installation Ansible avec la version de python sur la préproduction (v3.9.2 en production, v3.12.2 rétrogradée en v3.9.1 durant mon process de debug, fonctionnel comme ça)actions/checkout
,actions/cache