From 58534f9bd2d9482582f6f9070813942d28a3dccd Mon Sep 17 00:00:00 2001 From: ArdavanPb Date: Wed, 23 Jul 2025 13:43:04 +0330 Subject: [PATCH] run python user datall --- roles/install-rx.yml | 2 ++ roles/intall-tx.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/roles/install-rx.yml b/roles/install-rx.yml index 4e0fbae..b440ccc 100644 --- a/roles/install-rx.yml +++ b/roles/install-rx.yml @@ -28,6 +28,7 @@ #section active python and install requirements - name: Create a Python 3 venv + become_user: datall ansible.builtin.command: cmd: python3 -m venv "{{ venv_path }}" args: @@ -38,6 +39,7 @@ cmd: "{{ venv_path }}/bin/python -m pip install --upgrade pip setuptools" - name: Install requirements into the venv + become_user: datall ansible.builtin.pip: requirements: "{{ app_path }}/requirements.txt" virtualenv: "{{ venv_path }}" diff --git a/roles/intall-tx.yml b/roles/intall-tx.yml index 097d502..dc94fe5 100644 --- a/roles/intall-tx.yml +++ b/roles/intall-tx.yml @@ -27,6 +27,7 @@ state: directory #section active python and install requirements - name: Create a Python 3 venv + become_user: datall ansible.builtin.command: cmd: python3 -m venv "{{ venv_path }}" args: @@ -37,6 +38,7 @@ cmd: "{{ venv_path }}/bin/python -m pip install --upgrade pip setuptools" - name: Install requirements into the venv + become_user: datall ansible.builtin.pip: requirements: "{{ app_path }}/requirements.txt" virtualenv: "{{ venv_path }}"