Skip to content

Commit

Permalink
feat: ajoute un venv python pour éviter les erreurs de version python
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamzic committed Sep 26, 2024
1 parent 52ce4cc commit 47de1d0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions synchronize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@
ansible.builtin.apt:
name: [git, python3-pip]
state: present
- name: Install ansible on host

- name: Create Python virtual environment

Check failure on line 11 in synchronize.yaml

View workflow job for this annotation

GitHub Actions / Lint ansible files

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 11 in synchronize.yaml

View workflow job for this annotation

GitHub Actions / Lint ansible files

no-changed-when

Commands should not change things if nothing needs doing.
ansible.builtin.command:
cmd: python3 -m venv /opt/mes-aides/venv

- name: Install ansible in virtual environment
ansible.builtin.pip:
name: ansible
extra_args: "--break-system-packages"
virtualenv: /opt/mes-aides/venv
virtualenv_command: /opt/mes-aides/venv/bin/pip

- name: Clone application repository
ansible.builtin.git:
repo: "{{ ops.repository }}"
Expand Down

0 comments on commit 47de1d0

Please sign in to comment.