modipy ansible role for pypi packaing
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user