Compare commits

..
2 Commits
Author SHA1 Message Date
Karenzz 1d9e2ec5d5 Merge branch 'main' of https://gogs.gtsplab.com:5432/SVIG/pricer 2023-06-07 16:24:41 -04:00
Karenzz c1d7312500 Add checkout repository and
and pip install python requirements
2023-06-07 16:23:24 -04:00
+21 -1
View File
@@ -6,7 +6,7 @@
msg: "Package manager is not apt" msg: "Package manager is not apt"
when: "ansible_pkg_mgr != 'apt'" when: "ansible_pkg_mgr != 'apt'"
- name: Add git task to basic checks playbook - name: Check out the pricer repository
hosts: all hosts: all
tasks: tasks:
- name: Checkout pricer repository - name: Checkout pricer repository
@@ -17,3 +17,23 @@
become: yes become: yes
become_user: root become_user: root
- name: Install Python requirements
hosts: all
tasks:
- name: Install Python requirements
ansible.builtin.pip:
requirements: /opt/pricer/requirements.txt
become: yes
- name: Install missing packages with apt
apt:
name: "{{ item }}"
state: present
become: yes
with_lines:
cmd: "pip show {{ item }}"
register: pip_packages
changed_when: pip_packages.rc != 0
loop_control:
loop_var: item