lttng_tools_packages: "{{ __lttng_tools_packages | list }}"
when: lttng_tools_packages is not defined
+- name: Define lttng_tools_packages_no_recommends.
+ set_fact:
+ lttng_tools_packages_no_recommends: "{{ __lttng_tools_packages_no_recommends | list }}"
+ when: lttng_tools_packages_no_recommends is not defined
+
# Setup/install tasks.
- include: setup-RedHat.yml
when: ansible_os_family == 'RedHat'
- name: Ensure lttng-tools build dependencies are installed.
apt: "name={{ item }} state=installed"
with_items: lttng_tools_packages
+
+- name: Ensure lttng-tools build dependencies are installed (no recommends).
+ apt: "name={{ item }} state=installed install_recommends=no"
+ with_items: lttng_tools_packages_no_recommends