run python user datall
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#section active python and install requirements
|
#section active python and install requirements
|
||||||
- name: Create a Python 3 venv
|
- name: Create a Python 3 venv
|
||||||
|
become_user: datall
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: python3 -m venv "{{ venv_path }}"
|
cmd: python3 -m venv "{{ venv_path }}"
|
||||||
args:
|
args:
|
||||||
@@ -38,6 +39,7 @@
|
|||||||
cmd: "{{ venv_path }}/bin/python -m pip install --upgrade pip setuptools"
|
cmd: "{{ venv_path }}/bin/python -m pip install --upgrade pip setuptools"
|
||||||
|
|
||||||
- name: Install requirements into the venv
|
- name: Install requirements into the venv
|
||||||
|
become_user: datall
|
||||||
ansible.builtin.pip:
|
ansible.builtin.pip:
|
||||||
requirements: "{{ app_path }}/requirements.txt"
|
requirements: "{{ app_path }}/requirements.txt"
|
||||||
virtualenv: "{{ venv_path }}"
|
virtualenv: "{{ venv_path }}"
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
#section active python and install requirements
|
#section active python and install requirements
|
||||||
- name: Create a Python 3 venv
|
- name: Create a Python 3 venv
|
||||||
|
become_user: datall
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: python3 -m venv "{{ venv_path }}"
|
cmd: python3 -m venv "{{ venv_path }}"
|
||||||
args:
|
args:
|
||||||
@@ -37,6 +38,7 @@
|
|||||||
cmd: "{{ venv_path }}/bin/python -m pip install --upgrade pip setuptools"
|
cmd: "{{ venv_path }}/bin/python -m pip install --upgrade pip setuptools"
|
||||||
|
|
||||||
- name: Install requirements into the venv
|
- name: Install requirements into the venv
|
||||||
|
become_user: datall
|
||||||
ansible.builtin.pip:
|
ansible.builtin.pip:
|
||||||
requirements: "{{ app_path }}/requirements.txt"
|
requirements: "{{ app_path }}/requirements.txt"
|
||||||
virtualenv: "{{ venv_path }}"
|
virtualenv: "{{ venv_path }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user