Deleted the missing package check
This commit is contained in:
@@ -41,15 +41,3 @@
|
||||
ansible.builtin.pip:
|
||||
requirements: /opt/pricer/requirements.txt
|
||||
|
||||
- name: Check missing packages
|
||||
command: "pip show {{ item }}"
|
||||
register: pip_packages
|
||||
changed_when: false
|
||||
failed_when: "'WARNING: Package(s) not found' not in pip_packages.stderr"
|
||||
loop: "{{ lookup('file', '/opt/pricer/requirements.txt').splitlines() }}"
|
||||
|
||||
- name: Install missing packages with apt
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ pip_packages.results | map(attribute='item') | list }}"
|
||||
|
||||
Reference in New Issue
Block a user