- name: Basic system checks hosts: all tasks: - name: Check to make sure the package manager is apt fail: msg: "Package manager is not apt" when: "ansible_pkg_mgr != 'apt'" - name: Check out the pricer repository hosts: all tasks: - name: Checkout pricer repository git: repo: https://gogs.gtsplab.com:5432/SVIG/pricer.git dest: /opt/pricer version: main become: yes 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