modipy ansible role for pypi packaing

dev
Javanaut 10 months ago
parent cdc1664779
commit c8e21b9260

@ -62,16 +62,6 @@
group: "{{ ffxSystemUsername }}" group: "{{ ffxSystemUsername }}"
mode: 0755 mode: 0755
- name: Prepare ffx virtualenv
become: true
become_user: "{{ ffxSystemUsername }}"
ansible.builtin.pip:
name:
- click
- textual
- sqlalchemy
- requests
virtualenv: "{{ ffxHomeDirectory }}/.local/share/ffx.venv"
- name: Clone ffx repository - name: Clone ffx repository
become: true become: true
@ -82,6 +72,15 @@
version: dev version: dev
- name: Install FFX package in venv
become: true
become_user: "{{ ffxSystemUsername }}"
ansible.builtin.pip:
name: .
chdir: "{{ ffxHomeDirectory }}/.local/src/ffx"
virtualenv: "{{ ffxHomeDirectory }}/.local/share/ffx.venv"
- name: Add TMDB API token placeholer to .bashrc - name: Add TMDB API token placeholer to .bashrc
become: true become: true
become_user: "{{ ffxSystemUsername }}" become_user: "{{ ffxSystemUsername }}"
@ -98,8 +97,7 @@
path: "{{ ffxHomeDirectory }}/.bashrc" path: "{{ ffxHomeDirectory }}/.bashrc"
insertbefore: BOF insertbefore: BOF
line: >- line: >-
alias ffx="{{ ffxHomeDirectory }}/.local/share/ffx.venv/bin/python alias ffx="{{ ffxHomeDirectory }}/.local/share/ffx.venv/bin/ffx
{{ ffxHomeDirectory }}/.local/src/ffx/bin/ffx.py"
- name: Ensure local sync directory - name: Ensure local sync directory

Loading…
Cancel
Save