diff --git a/basic_checks.yml b/basic_checks.yml index c021dd9..4aedb5f 100644 --- a/basic_checks.yml +++ b/basic_checks.yml @@ -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 }}"