inprogress changes for wikmd venv setup

This commit is contained in:
tolerryan
2025-10-19 00:25:57 -05:00
parent 0a3f66c102
commit 3075b4e06c

View File

@@ -74,6 +74,10 @@
name: name:
- python3-full - python3-full
- python3-pip - python3-pip
- python3-venv
# Below are needed for wikmd install
- libxml++2.6-dev
- libxslt1-dev
state: present state: present
update_cache: yes update_cache: yes
@@ -124,6 +128,21 @@
creates: /data/wikmd creates: /data/wikmd
when: not wikmd_stat.stat.exists or not wikmd_stat.stat.isdir when: not wikmd_stat.stat.exists or not wikmd_stat.stat.isdir
- name: Remove VENV directory
ansible.builtin.file:
path: /data/wikmd/venv
state: absent
- name: Create VENV directory
command:
cmd: "python3 -m venv /data/wikmd/venv"
creates: "/data/wikmd/venv/bin/activate"
- name: Upgrade pip in virtual environment
pip:
requirements: "{{ project_dir }}/requirements.txt"
virtualenv: "{{ project_dir }}/venv"
- name: Reload systemd daemon - name: Reload systemd daemon
systemd: systemd:
daemon_reload: yes daemon_reload: yes