--- # We use the ubuntu2204 image provided by ansible-test. - name: "{{ role_name }} | Requirements | Install Linux packages" ansible.builtin.package: name: - bzip2 # To test mysql_db dump compression - "{{ db_engine }}-client" # The command mysql-config must be present for mysqlclient python package. # The package libmysqlclient-dev that provides this command have a # different name between Ubuntu 20.04 and 22.04. Luckily, libmysql++ is # available on both. - "{{ 'libmysql++-dev' if db_engine == 'mysql' else 'libmariadb-dev' }}" state: present - name: "{{ role_name }} | Requirements | Install Python packages" ansible.builtin.pip: name: - "{{ connector_name }}=={{ connector_version }}" state: present