I use Ansible to configure a system which includes installing many packages.
Must I set the version number to the packages? My understanding is If I do not set the versions to the individual package, then next time when I rerun the Ansible, it will install the latest versions of the packages, then I am afraid the latest versions of some package will be incompatible with the latest versions of other packages, Am I correct?
Here is an example how currently I set the versions:
- name: install apache-airflow[postgres, s3, ...]
become_user: root
pip:
name: "{{ item.name }}"
version: "{{ item.version }}"
with_items:
- { name: apache-airflow, version: 1.10.3}
- { name: postgres, version: 2.2.2}
- { name: s3, version: 3.0.0 }
...